# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:32+0200\n" "PO-Revision-Date: 2026-06-02 19:02+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "newlocale" msgstr "newlocale" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "newlocale, freelocale - create, modify, and free a locale object" msgstr "newlocale, freelocale - إنشاء وتعديل وتحرير كائن محلي" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Elocale.hE>\n" msgstr "B<#include Elocale.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, const char *>IB<,>\n" "B< locale_t >IB<);>\n" "BIB<);>\n" msgstr "" "BIB<, const char *>IB<,>\n" "B< locale_t >IB<);>\n" "BIB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B(7)):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(), B():" msgstr "B()، B():" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " Since glibc 2.10:\n" " _XOPEN_SOURCE E= 700\n" " Before glibc 2.10:\n" " _GNU_SOURCE\n" msgstr "" " منذ glibc 2.10:\n" " _XOPEN_SOURCE E= 700\n" " قبل glibc 2.10:\n" " _GNU_SOURCE\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function creates a new locale object, or modifies an " "existing object, returning a reference to the new or modified object as the " "function result. Whether the call creates a new object or modifies an " "existing object is determined by the value of I:" msgstr "" "تنشئ الدالة B() كائنًا محليًا جديدًا، أو تعدل كائنًا موجودًا، وتعيد " "مرجعًا إلى الكائن الجديد أو المعدل كنتيجة للدالة. يُحدد ما إذا كان الاستدعاء " "ينشئ كائنًا جديدًا أو يعدل كائنًا موجودًا بقيمة I:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "If I is I<(locale_t)\\ 0>, a new object is created." msgstr "إذا كان I هو I<(locale_t)\\ 0>، يُنشأ كائن جديد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I refers to valid existing locale object (i.e., an object returned " "by a previous call to B() or B(3)), then that object " "is modified by the call. If the call is successful, the contents of I " "are unspecified (in particular, the object referred to by I may be " "freed, and a new object created). Therefore, the caller should ensure that " "it stops using I before the call to B(), and should " "subsequently refer to the modified object via the reference returned as the " "function result. If the call fails, the contents of I remain valid " "and unchanged." msgstr "" "إذا كان I يشير إلى كائن محلي موجود صالح (أي كائن أُعيد بواسطة استدعاء " "سابق لـ B() أو B(3))، فسيُعدل ذلك الكائن بواسطة " "الاستدعاء. إذا نجح الاستدعاء، تكون محتويات I غير محددة (على وجه " "الخصوص، قد يُحرر الكائن المشار إليه بـ I، ويُنشأ كائن جديد). لذلك، يجب " "على المستدعي التأكد من توقف استخدام I قبل استدعاء B()، ويجب " "عليه لاحقًا الإشارة إلى الكائن المعدل عبر المرجع المُعاد كنتيجة للدالة. إذا " "فشل الاستدعاء، تظل محتويات I صالحة ودون تغيير." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If I is the special locale object B (see " "B(3)), or is not I<(locale_t)\\ 0> and is not a valid locale " "object handle, the behavior is undefined." msgstr "" "إذا كان I هو الكائن المحلي الخاص B (انظر " "B(3))، أو لم يكن I<(locale_t)\\ 0> ولم يكن مقبض كائن محلي صالح، " "فالسلوك غير محدد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The I argument is a bit mask that specifies the locale " "categories that are to be set in a newly created locale object or modified " "in an existing object. The mask is constructed by a bitwise OR of the " "constants B, B, B, " "B, B, B, " "B, B, B, B, " "B, and B. Alternatively, the mask can be " "specified as B, which is equivalent to ORing all of the " "preceding constants." msgstr "" "الوسيطة I هي قناع بت يحدد فئات المحلية التي ستُضبط في كائن " "محلي منشأ حديثًا أو تُعدل في كائن موجود. يُنشأ القناع بواسطة OR أحادي البت " "للثوابت B وB وB " "وB وB وB " "وB وB وB وB " "وB وB. بدلاً من ذلك، يمكن تحديد القناع كـ " "B، وهو ما يعادل OR لجميع الثوابت السابقة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For each category specified in I, the locale data from " "I will be used in the object returned by B(). If a new " "locale object is being created, data for all categories not specified in " "I is taken from the default (\"POSIX\") locale." msgstr "" "لكل فئة محددة في I، ستُستخدم بيانات المحلية من I في " "الكائن المُعاد بواسطة B(). إذا كان يُنشأ كائن محلي جديد، تُؤخذ " "بيانات جميع الفئات غير المحددة في I من المحلية المبدئية " "(\"POSIX\")." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following preset values of I are defined for all categories that " "can be specified in I:" msgstr "" "القيم المحددة مسبقًا التالية لـ I مُعرفة لجميع الفئات التي يمكن " "تحديدها في I:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "POSIX" msgstr "POSIX" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A minimal locale environment for C language programs." msgstr "بيئة محلية دنيا لبرامج لغة C." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "C" msgstr "C" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Equivalent to \"POSIX\"." msgstr "مكافئ لـ \"POSIX\"." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An implementation-defined native environment corresponding to the values of " "the B and B environment variables (see B(7))." msgstr "" "بيئة أصلية مُعرفة بالتطبيق تتوافق مع قيم متغيرات البيئة B وB " "(انظر B(7))." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "freelocale()" msgstr "freelocale()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function deallocates the resources associated with " "I, a locale object previously returned by a call to B() " "or B(3). If I is B or is not valid " "locale object handle, the results are undefined." msgstr "" "تحرر الدالة B() الموارد المرتبطة بـ I، وهو كائن محلي " "أُعيد سابقًا بواسطة استدعاء لـ B() أو B(3). إذا كان " "I هو B أو لم يكن مقبض كائن محلي صالح، فالنتائج غير " "محددة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Once a locale object has been freed, the program should make no further use " "of it." msgstr "بمجرد تحرير كائن محلي، يجب ألا يستخدمه البرنامج بعد ذلك." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, B() returns a handle that can be used in calls to " "B(3), B(), and other functions that take a " "I argument. On error, B() returns I<(locale_t)\\ 0>, " "and sets I to indicate the error." msgstr "" "عند النجاح، تُعيد B() مقبضًا يمكن استخدامه في استدعاءات " "B(3) وB() ودوال أخرى تأخذ وسيطة I. عند " "الخطأ، تُعيد B() I<(locale_t)\\ 0>، وتضبط I للإشارة إلى " "الخطأ." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "One or more bits in I do not correspond to a valid locale " "category." msgstr "بت واحد أو أكثر في I لا يتوافق مع فئة محلية صالحة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is NULL." msgstr "I هو NULL." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not a string pointer referring to a valid locale." msgstr "I ليس مؤشر سلسلة محارف يشير إلى محلية صالحة." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Insufficient memory to create a locale object." msgstr "ذاكرة غير كافية لإنشاء كائن محلي." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "glibc 2.3." msgstr "glibc 2.3." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Each locale object created by B() should be deallocated using " "B()." msgstr "" "يجب تحرير كل كائن محلي أُنشئ بواسطة B() باستخدام B()." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below takes up to two command-line arguments, which each " "identify locales. The first argument is required, and is used to set the " "B category in a locale object created using B(). The " "second command-line argument is optional; if it is present, it is used to " "set the B category of the locale object." msgstr "" "يقبل البرنامج التالي وسيطتين لسطر الأوامر كحد أقصى، كل منهما يُعرّف محلية. " "الوسيطة الأولى مطلوبة، وتُستخدم لتعيين فئة B في كائن محلي أُنشئ " "باستخدام B(). الوسيطة الثانية اختيارية؛ إذا وُجدت، تُستخدم لتعيين " "فئة B للكائن المحلي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Having created and initialized the locale object, the program then applies " "it using B(3), and then tests the effect of the locale changes by:" msgstr "" "بعد إنشاء وتهيئة الكائن المحلي، يُطبّقه البرنامج باستخدام B(3)، ثم " "يختبر تأثير تغييرات المحلية عن طريق:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(1)" msgstr "(1)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Displaying a floating-point number with a fractional part. This output will " "be affected by the B setting. In many European-language " "locales, the fractional part of the number is separated from the integer " "part using a comma, rather than a period." msgstr "" "عرض رقم فاصلة عائمة بجزء كسري. سيتأثر هذا المخرج بإعداد B. في " "العديد من المحليات ذات اللغات الأوروبية، يُفصل الجزء الكسري عن الجزء الصحيح " "باستخدام فاصلة بدلاً من نقطة." #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "(2)" msgstr "(2)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Displaying the date. The format and language of the output will be affected " "by the B setting." msgstr "عرض التاريخ. سيتأثر تنسيق ولغة المخرج بإعداد B." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following shell sessions show some example runs of this program." msgstr "تُظهر جلسات الصدفة التالية بعض الأمثلة لتشغيل هذا البرنامج." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Set the B category to I (French):" msgstr "اضبط فئة B على I (الفرنسية):" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out fr_FR>;\n" "123456,789\n" "Fri Mar 7 00:25:08 2014\n" msgstr "" "$B< ./a.out fr_FR>;\n" "123456,789\n" "Fri Mar 7 00:25:08 2014\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Set the B category to I (French), and the B " "category to I (Italian):" msgstr "" "اضبط فئة B على I (الفرنسية)، وفئة B على I " "(الإيطالية):" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out fr_FR it_IT>;\n" "123456,789\n" "ven 07 mar 2014 00:26:01 CET\n" msgstr "" "$B< ./a.out fr_FR it_IT>;\n" "123456,789\n" "ven 07 mar 2014 00:26:01 CET\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Specify the B setting as an empty string, which causes the value to " "be taken from environment variable settings (which, here, specify I, " "New Zealand Māori):" msgstr "" "حدد إعداد B كسلسلة فارغة، مما يؤدي إلى أخذ القيمة من إعدادات " "متغيرات البيئة (التي تحدد هنا I، الماوري النيوزيلندي):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "$ LC_ALL=mi_NZ ./a.out fr_FR \"\"\n" "123456,789\n" "Te Paraire, te 07 o Poutū-te-rangi, 2014 00:38:44 CET\n" msgstr "" "$ LC_ALL=mi_NZ ./a.out fr_FR \"\"\n" "123456,789\n" "Te Paraire, te 07 o Poutū-te-rangi, 2014 00:38:44 CET\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#define _XOPEN_SOURCE 700\n" "#include Eerr.hE\n" "#include Elocale.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Etime.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char buf[100];\n" " time_t t;\n" " size_t s;\n" " struct tm *tm;\n" " locale_t loc, nloc;\n" "\\&\n" " if (argc E 2) {\n" " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Create a new locale object, taking the LC_NUMERIC settings\n" " from the locale specified in argv[1]. */\n" "\\&\n" " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n" " if (loc == (locale_t) 0)\n" " err(EXIT_FAILURE, \"newlocale\");\n" "\\&\n" " /* If a second command-line argument was specified, modify the\n" " locale object to take the LC_TIME settings from the locale\n" " specified in argv[2]. We assign the result of this newlocale()\n" " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n" " want to preserve \\[aq]loc\\[aq] if this call fails. */\n" "\\&\n" " if (argc E 2) {\n" " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n" " if (nloc == (locale_t) 0)\n" " err(EXIT_FAILURE, \"newlocale\");\n" " loc = nloc;\n" " }\n" "\\&\n" " /* Apply the newly created locale to this thread. */\n" "\\&\n" " uselocale(loc);\n" "\\&\n" " /* Test effect of LC_NUMERIC. */\n" "\\&\n" " printf(\"%8.3f\\[rs]n\", 123456.789);\n" "\\&\n" " /* Test effect of LC_TIME. */\n" "\\&\n" " t = time(NULL);\n" " tm = localtime(&t);\n" " if (tm == NULL)\n" " err(EXIT_FAILURE, \"time\");\n" "\\&\n" " s = strftime(buf, sizeof(buf), \"%c\", tm);\n" " if (s == 0)\n" " err(EXIT_FAILURE, \"strftime\");\n" "\\&\n" " printf(\"%s\\[rs]n\", buf);\n" "\\&\n" " /* Free the locale object. */\n" "\\&\n" " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n" " freelocale(loc);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _XOPEN_SOURCE 700\n" "#include Eerr.hE\n" "#include Elocale.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Etime.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char buf[100];\n" " time_t t;\n" " size_t s;\n" " struct tm *tm;\n" " locale_t loc, nloc;\n" "\\&\n" " if (argc E 2) {\n" " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Create a new locale object, taking the LC_NUMERIC settings\n" " from the locale specified in argv[1]. */\n" "\\&\n" " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n" " if (loc == (locale_t) 0)\n" " err(EXIT_FAILURE, \"newlocale\");\n" "\\&\n" " /* If a second command-line argument was specified, modify the\n" " locale object to take the LC_TIME settings from the locale\n" " specified in argv[2]. We assign the result of this newlocale()\n" " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n" " want to preserve \\[aq]loc\\[aq] if this call fails. */\n" "\\&\n" " if (argc E 2) {\n" " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n" " if (nloc == (locale_t) 0)\n" " err(EXIT_FAILURE, \"newlocale\");\n" " loc = nloc;\n" " }\n" "\\&\n" " /* Apply the newly created locale to this thread. */\n" "\\&\n" " uselocale(loc);\n" "\\&\n" " /* Test effect of LC_NUMERIC. */\n" "\\&\n" " printf(\"%8.3f\\[rs]n\", 123456.789);\n" "\\&\n" " /* Test effect of LC_TIME. */\n" "\\&\n" " t = time(NULL);\n" " tm = localtime(&t);\n" " if (tm == NULL)\n" " err(EXIT_FAILURE, \"time\");\n" "\\&\n" " s = strftime(buf, sizeof(buf), \"%c\", tm);\n" " if (s == 0)\n" " err(EXIT_FAILURE, \"strftime\");\n" "\\&\n" " printf(\"%s\\[rs]n\", buf);\n" "\\&\n" " /* Free the locale object. */\n" "\\&\n" " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n" " freelocale(loc);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(1), B(3), B(3), B(3), " "B(5), B(7)" msgstr "" "B(1), B(3), B(3), B(3), " "B(5), B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B<./a.out fr_FR>\n" "123456,789\n" "Fri Mar 7 00:25:08 2014\n" msgstr "" "$ B<./a.out fr_FR>\n" "123456,789\n" "Fri Mar 7 00:25:08 2014\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "$ B<./a.out fr_FR it_IT>\n" "123456,789\n" "ven 07 mar 2014 00:26:01 CET\n" msgstr "" "$ B<./a.out fr_FR it_IT>\n" "123456,789\n" "ven 07 mar 2014 00:26:01 CET\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#define _XOPEN_SOURCE 700\n" "#include Elocale.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Etime.hE\n" "\\&\n" "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" " } while (0)\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char buf[100];\n" " time_t t;\n" " size_t s;\n" " struct tm *tm;\n" " locale_t loc, nloc;\n" "\\&\n" " if (argc E 2) {\n" " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Create a new locale object, taking the LC_NUMERIC settings\n" " from the locale specified in argv[1]. */\n" "\\&\n" " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n" " if (loc == (locale_t) 0)\n" " errExit(\"newlocale\");\n" "\\&\n" " /* If a second command-line argument was specified, modify the\n" " locale object to take the LC_TIME settings from the locale\n" " specified in argv[2]. We assign the result of this newlocale()\n" " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n" " want to preserve \\[aq]loc\\[aq] if this call fails. */\n" "\\&\n" " if (argc E 2) {\n" " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n" " if (nloc == (locale_t) 0)\n" " errExit(\"newlocale\");\n" " loc = nloc;\n" " }\n" "\\&\n" " /* Apply the newly created locale to this thread. */\n" "\\&\n" " uselocale(loc);\n" "\\&\n" " /* Test effect of LC_NUMERIC. */\n" "\\&\n" " printf(\"%8.3f\\[rs]n\", 123456.789);\n" "\\&\n" " /* Test effect of LC_TIME. */\n" "\\&\n" " t = time(NULL);\n" " tm = localtime(&t);\n" " if (tm == NULL)\n" " errExit(\"time\");\n" "\\&\n" " s = strftime(buf, sizeof(buf), \"%c\", tm);\n" " if (s == 0)\n" " errExit(\"strftime\");\n" "\\&\n" " printf(\"%s\\[rs]n\", buf);\n" "\\&\n" " /* Free the locale object. */\n" "\\&\n" " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n" " freelocale(loc);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _XOPEN_SOURCE 700\n" "#include Elocale.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Etime.hE\n" "\\&\n" "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n" " } while (0)\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char buf[100];\n" " time_t t;\n" " size_t s;\n" " struct tm *tm;\n" " locale_t loc, nloc;\n" "\\&\n" " if (argc E 2) {\n" " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Create a new locale object, taking the LC_NUMERIC settings\n" " from the locale specified in argv[1]. */\n" "\\&\n" " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n" " if (loc == (locale_t) 0)\n" " errExit(\"newlocale\");\n" "\\&\n" " /* If a second command-line argument was specified, modify the\n" " locale object to take the LC_TIME settings from the locale\n" " specified in argv[2]. We assign the result of this newlocale()\n" " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n" " want to preserve \\[aq]loc\\[aq] if this call fails. */\n" "\\&\n" " if (argc E 2) {\n" " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n" " if (nloc == (locale_t) 0)\n" " errExit(\"newlocale\");\n" " loc = nloc;\n" " }\n" "\\&\n" " /* Apply the newly created locale to this thread. */\n" "\\&\n" " uselocale(loc);\n" "\\&\n" " /* Test effect of LC_NUMERIC. */\n" "\\&\n" " printf(\"%8.3f\\[rs]n\", 123456.789);\n" "\\&\n" " /* Test effect of LC_TIME. */\n" "\\&\n" " t = time(NULL);\n" " tm = localtime(&t);\n" " if (tm == NULL)\n" " errExit(\"time\");\n" "\\&\n" " s = strftime(buf, sizeof(buf), \"%c\", tm);\n" " if (s == 0)\n" " errExit(\"strftime\");\n" "\\&\n" " printf(\"%s\\[rs]n\", buf);\n" "\\&\n" " /* Free the locale object. */\n" "\\&\n" " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n" " freelocale(loc);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"