Debian Codegraph @

po/fr/man3/newlocale.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2014.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2013, 2014.
18 # Jean-Pierre Giraud <[email protected]>, 2023-2025.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.22.0\n"
22 "POT-Creation-Date: 2026-06-05 06:32+0200\n"
23 "PO-Revision-Date: 2025-05-29 00:35+0200\n"
24 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "newlocale"
38 msgstr "newlocale"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "newlocale, freelocale - create, modify, and free a locale object"
64 msgstr ""
65 "newlocale, freelocale - Créer, modifier et libérer un objet de paramètres "
66 "régionaux"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "LIBRARY"
73 msgstr "BIBLIOTHÈQUE"
74
75 #. type: Plain text
76 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
77 #: opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "Standard C library (I<libc>,\\ I<-lc>)"
79 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "SYNOPSIS"
86 msgstr "SYNOPSIS"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid "B<#include E<lt>locale.hE<gt>>\n"
93 msgstr "B<#include E<lt>locale.hE<gt>>\n"
94
95 #. type: Plain text
96 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
97 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
98 #, no-wrap
99 msgid ""
100 "B<locale_t newlocale(int >I<category_mask>B<, const char *>I<locale>B<,>\n"
101 "B< locale_t >I<base>B<);>\n"
102 "B<void freelocale(locale_t >I<locobj>B<);>\n"
103 msgstr ""
104 "B<locale_t newlocale(int >I<category_mask>B<, const char *>I<locale>B<,>\n"
105 "B< locale_t >I<base>B<);>\n"
106 "B<void freelocale(locale_t >I<locobj>B<);>\n"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
113 msgstr ""
114 "Exigences de macros de test de fonctionnalités pour la glibc (consulter "
115 "B<feature_test_macros>(7)) :"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid "B<newlocale>(), B<freelocale>():"
121 msgstr "B<newlocale>(), B<freelocale>() :"
122
123 #. type: Plain text
124 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
125 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
126 #, no-wrap
127 msgid ""
128 " Since glibc 2.10:\n"
129 " _XOPEN_SOURCE E<gt>= 700\n"
130 " Before glibc 2.10:\n"
131 " _GNU_SOURCE\n"
132 msgstr ""
133 " Depuis la glibc 2.10 :\n"
134 " _XOPEN_SOURCE E<gt>= 700\n"
135 " Avant la glibc 2.10 :\n"
136 " _GNU_SOURCE\n"
137
138 #. type: SH
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid "DESCRIPTION"
143 msgstr "DESCRIPTION"
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "The B<newlocale>() function creates a new locale object, or modifies an "
150 "existing object, returning a reference to the new or modified object as the "
151 "function result. Whether the call creates a new object or modifies an "
152 "existing object is determined by the value of I<base>:"
153 msgstr ""
154 "La fonction B<newlocale>() crée un nouvel objet de paramètres régionaux ou "
155 "modifie un objet existant, en renvoyant une référence vers le nouvel objet "
156 "ou l’objet modifié comme résultat de la fonction. L’appel crée un nouvel "
157 "objet ou modifie un objet existant en fonction de la valeur de I<base> :"
158
159 #. type: IP
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "\\[bu]"
164 msgstr "-"
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid "If I<base> is I<(locale_t)\\ 0>, a new object is created."
170 msgstr "si I<base> est I<(locale_t)\\ 0>, un nouvel objet est créé ;"
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "If I<base> refers to valid existing locale object (i.e., an object returned "
177 "by a previous call to B<newlocale>() or B<duplocale>(3)), then that object "
178 "is modified by the call. If the call is successful, the contents of I<base> "
179 "are unspecified (in particular, the object referred to by I<base> may be "
180 "freed, and a new object created). Therefore, the caller should ensure that "
181 "it stops using I<base> before the call to B<newlocale>(), and should "
182 "subsequently refer to the modified object via the reference returned as the "
183 "function result. If the call fails, the contents of I<base> remain valid "
184 "and unchanged."
185 msgstr ""
186 "si I<base> indique un objet de paramètres régionaux valable existant (c’est-"
187 "à-dire un objet renvoyé par un précédent appel de B<newlocale>() ou "
188 "B<duplocale>(3)), alors cet objet est modifié par l’appel. Si l’appel "
189 "réussit, le contenu de I<base> n’est pas garanti (en particulier, l’objet "
190 "indiqué par I<base> pourrait être libéré et un nouvel objet créé). Par "
191 "conséquent, l’appelant devrait s’assurer de ne plus utiliser I<base> avant "
192 "l’appel de B<newlocale>() et devrait ensuite se rapporter à l’objet modifié "
193 "à l’aide de la référence renvoyée comme résultat de la fonction. Si l’appel "
194 "échoue, le contenu de I<base> reste valable et sans modification."
195
196 #. type: Plain text
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 msgid ""
200 "If I<base> is the special locale object B<LC_GLOBAL_LOCALE> (see "
201 "B<duplocale>(3)), or is not I<(locale_t)\\ 0> and is not a valid locale "
202 "object handle, the behavior is undefined."
203 msgstr ""
204 "Si I<base> est l’objet spécial de paramètres régionaux B<LC_GLOBAL_LOCALE> "
205 "(consultez B<duplocale>(3)), ou n’est pas I<(locale_t)\\ 0> ni un "
206 "identifiant d’objet de paramètres régionaux valable, le comportement est non "
207 "défini."
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "The I<category_mask> argument is a bit mask that specifies the locale "
214 "categories that are to be set in a newly created locale object or modified "
215 "in an existing object. The mask is constructed by a bitwise OR of the "
216 "constants B<LC_ADDRESS_MASK>, B<LC_CTYPE_MASK>, B<LC_COLLATE_MASK>, "
217 "B<LC_IDENTIFICATION_MASK>, B<LC_MEASUREMENT_MASK>, B<LC_MESSAGES_MASK>, "
218 "B<LC_MONETARY_MASK>, B<LC_NUMERIC_MASK>, B<LC_NAME_MASK>, B<LC_PAPER_MASK>, "
219 "B<LC_TELEPHONE_MASK>, and B<LC_TIME_MASK>. Alternatively, the mask can be "
220 "specified as B<LC_ALL_MASK>, which is equivalent to ORing all of the "
221 "preceding constants."
222 msgstr ""
223 "L’argument I<category_mask> est un masque binaire indiquant les catégories "
224 "de paramètres régionaux à définir dans un objet de paramètres régionaux "
225 "nouvellement créé ou modifié dans un objet existant. Le masque est construit "
226 "avec un OU binaire des constantes B<LC_ADDRESS_MASK>, B<LC_CTYPE_MASK>, "
227 "B<LC_COLLATE_MASK>, B<LC_IDENTIFICATION_MASK>, B<LC_MEASUREMENT_MASK>, "
228 "B<LC_MESSAGES_MASK>, B<LC_MONETARY_MASK>, B<LC_NUMERIC_MASK>, "
229 "B<LC_NAME_MASK>, B<LC_PAPER_MASK>, B<LC_TELEPHONE_MASK> et B<LC_TIME_MASK>. "
230 "Alternativement, le masque peut être défini comme B<LC_ALL_MASK>, ce qui est "
231 "équivalent à effectuer un OU binaire sur toutes les constantes précédentes."
232
233 #. type: Plain text
234 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
235 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
236 msgid ""
237 "For each category specified in I<category_mask>, the locale data from "
238 "I<locale> will be used in the object returned by B<newlocale>(). If a new "
239 "locale object is being created, data for all categories not specified in "
240 "I<category_mask> is taken from the default (\"POSIX\") locale."
241 msgstr ""
242 "Pour chaque catégorie indiquée dans I<category_mask>, les données de "
243 "paramètres régionaux de I<locale> seront utilisées dans l’objet renvoyé par "
244 "B<newlocale>(). Si un nouvel objet de paramètres régionaux est en cours de "
245 "création, les données de toutes les catégories non indiquées dans "
246 "I<category_mask> sont prises dans les paramètres régionaux par défaut "
247 "(\"POSIX\")."
248
249 #. type: Plain text
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 msgid ""
253 "The following preset values of I<locale> are defined for all categories that "
254 "can be specified in I<category_mask>:"
255 msgstr ""
256 "Les valeurs prédéfinies suivantes de I<locale> sont définies pour toutes les "
257 "catégories qui peuvent être indiquées dans I<category_mask> :"
258
259 #. type: TP
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid "POSIX"
264 msgstr "POSIX"
265
266 #. type: Plain text
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 msgid "A minimal locale environment for C language programs."
270 msgstr ""
271 "Un environnement de paramètres régionaux minimal pour les programmes en "
272 "langage C."
273
274 #. type: TP
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "C"
279 msgstr "C"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid "Equivalent to \"POSIX\"."
285 msgstr "Équivalent à \"POSIX\"."
286
287 #. type: Plain text
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 msgid ""
291 "An implementation-defined native environment corresponding to the values of "
292 "the B<LC_*> and B<LANG> environment variables (see B<locale>(7))."
293 msgstr ""
294 "Un environnement natif défini pour l’implémentation correspondant aux "
295 "valeurs des variables d’environnement B<LC_*> et B<LANG> (consultez "
296 "B<locale>(7))."
297
298 #. type: SS
299 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
300 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
301 #, no-wrap
302 msgid "freelocale()"
303 msgstr "freelocale()"
304
305 #. type: Plain text
306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
308 msgid ""
309 "The B<freelocale>() function deallocates the resources associated with "
310 "I<locobj>, a locale object previously returned by a call to B<newlocale>() "
311 "or B<duplocale>(3). If I<locobj> is B<LC_GLOBAL_LOCALE> or is not valid "
312 "locale object handle, the results are undefined."
313 msgstr ""
314 "La fonction B<freelocale>() désalloue les ressources associées à I<locobj>, "
315 "un objet de paramètres régionaux renvoyé par un appel à B<newlocale>() ou "
316 "B<duplocale>(3). Si I<locobj> est B<LC_GLOBAL_LOCALE> ou n’est pas un "
317 "identifiant d’objet valable de paramètres régionaux, le résultat n’est pas "
318 "défini."
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "Once a locale object has been freed, the program should make no further use "
325 "of it."
326 msgstr ""
327 "Une fois qu’un objet de paramètres régionaux a été libéré, le programme ne "
328 "devrait plus l’utiliser."
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "RETURN VALUE"
335 msgstr "VALEUR RENVOYÉE"
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "On success, B<newlocale>() returns a handle that can be used in calls to "
342 "B<duplocale>(3), B<freelocale>(), and other functions that take a "
343 "I<locale_t> argument. On error, B<newlocale>() returns I<(locale_t)\\ 0>, "
344 "and sets I<errno> to indicate the error."
345 msgstr ""
346 "En cas de réussite, B<newlocale>() renvoie un identifiant qui peut être "
347 "utilisé dans les appels de B<duplocale>(3), B<freelocale>() et d’autres "
348 "fonctions qui prennent un argument I<locale_t>. En cas d’erreur, "
349 "B<newlocale>() renvoie I<(locale_t)\\ 0> et définit I<errno> pour indiquer "
350 "l’erreur."
351
352 #. type: SH
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 #, no-wrap
356 msgid "ERRORS"
357 msgstr "ERREURS"
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<EINVAL>"
364 msgstr "B<EINVAL>"
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "One or more bits in I<category_mask> do not correspond to a valid locale "
371 "category."
372 msgstr ""
373 "Au moins un bit de I<category_mask> ne correspond pas à une catégorie "
374 "valable de paramètres régionaux."
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "I<locale> is NULL."
380 msgstr "I<locale> est NULL."
381
382 #. type: TP
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "B<ENOENT>"
387 msgstr "B<ENOENT>"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid "I<locale> is not a string pointer referring to a valid locale."
393 msgstr ""
394 "I<locale> n’est pas un pointeur de chaîne vers des paramètres régionaux "
395 "valables."
396
397 #. type: TP
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "B<ENOMEM>"
402 msgstr "B<ENOMEM>"
403
404 #. type: Plain text
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 msgid "Insufficient memory to create a locale object."
408 msgstr "Pas assez de mémoire pour créer un objet de paramètres régionaux."
409
410 #. type: SH
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "STANDARDS"
415 msgstr "NORMES"
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid "POSIX.1-2008."
421 msgstr "POSIX.1-2008."
422
423 #. type: SH
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "HISTORY"
428 msgstr "HISTORIQUE"
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid "glibc 2.3."
434 msgstr "glibc 2.3."
435
436 #. type: SH
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "NOTES"
441 msgstr "NOTES"
442
443 #. type: Plain text
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 msgid ""
447 "Each locale object created by B<newlocale>() should be deallocated using "
448 "B<freelocale>()."
449 msgstr ""
450 "Chaque objet de paramètres régionaux créé par B<newlocale>() devrait être "
451 "désalloué en utilisant B<freelocale>()."
452
453 #. type: SH
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 #, no-wrap
457 msgid "EXAMPLES"
458 msgstr "EXEMPLES"
459
460 #. type: Plain text
461 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
462 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
463 msgid ""
464 "The program below takes up to two command-line arguments, which each "
465 "identify locales. The first argument is required, and is used to set the "
466 "B<LC_NUMERIC> category in a locale object created using B<newlocale>(). The "
467 "second command-line argument is optional; if it is present, it is used to "
468 "set the B<LC_TIME> category of the locale object."
469 msgstr ""
470 "Le programme suivant prend jusqu’à deux arguments en ligne de commande, "
471 "identifiant chacun des paramètres régionaux. Le premier argument est "
472 "nécessaire et sert à définir le catégorie B<LC_NUMERIC> dans un objet de "
473 "paramètres régionaux créé avec B<newlocale>(). Le second argument est "
474 "facultatif et sert à définir la catégorie B<LC_TIME> de l’objet de "
475 "paramètres régionaux s’il est présent."
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid ""
481 "Having created and initialized the locale object, the program then applies "
482 "it using B<uselocale>(3), and then tests the effect of the locale changes by:"
483 msgstr ""
484 "Après création et initialisation de l’objet de paramètres régionaux, le "
485 "programme l’applique en utilisant B<uselocale>(3) et teste ensuite l’effet "
486 "de la modification de paramètres régionaux en :"
487
488 #. type: IP
489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
491 #, no-wrap
492 msgid "(1)"
493 msgstr "(1)"
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ""
499 "Displaying a floating-point number with a fractional part. This output will "
500 "be affected by the B<LC_NUMERIC> setting. In many European-language "
501 "locales, the fractional part of the number is separated from the integer "
502 "part using a comma, rather than a period."
503 msgstr ""
504 "affichant un nombre à virgule avec une partie décimale. Cette sortie sera "
505 "affectée par le réglage B<LC_NUMERIC>. Dans de nombreux paramètres régionaux "
506 "de langues européennes, le partie décimale du nombre est séparée de la "
507 "partie entière par une virgule, plutôt que par un point ;"
508
509 #. type: IP
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 #, no-wrap
513 msgid "(2)"
514 msgstr "(2)"
515
516 #. type: Plain text
517 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
518 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
519 msgid ""
520 "Displaying the date. The format and language of the output will be affected "
521 "by the B<LC_TIME> setting."
522 msgstr ""
523 "affichant la date. Le format et la langue de sortie seront affectés par le "
524 "réglage B<LC_TIME>."
525
526 #. type: Plain text
527 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
528 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
529 msgid "The following shell sessions show some example runs of this program."
530 msgstr ""
531 "Les sessions suivantes d’interpréteur de commandes montrent des exemples "
532 "d’exécution de ce programme."
533
534 #. type: Plain text
535 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
536 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
537 msgid "Set the B<LC_NUMERIC> category to I<fr_FR> (French):"
538 msgstr "Définir la catégorie B<LC_NUMERIC> à I<fr_FR> (français) :"
539
540 #. type: Plain text
541 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
542 #: opensuse-tumbleweed
543 #, fuzzy, no-wrap
544 #| msgid ""
545 #| "$ B<./a.out fr_FR>\n"
546 #| "123456,789\n"
547 #| "Fri Mar 7 00:25:08 2014\n"
548 msgid ""
549 "$B< ./a.out fr_FR>;\n"
550 "123456,789\n"
551 "Fri Mar 7 00:25:08 2014\n"
552 msgstr ""
553 "$ B<./a.out fr_FR>\n"
554 "123456,789\n"
555 "Fri Mar 7 00:25:08 2014\n"
556
557 #. type: Plain text
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 msgid ""
561 "Set the B<LC_NUMERIC> category to I<fr_FR> (French), and the B<LC_TIME> "
562 "category to I<it_IT> (Italian):"
563 msgstr ""
564 "Définir la catégorie B<LC_NUMERIC> à I<fr_FR> (français) et la catégorie "
565 "B<LC_TIME> à I<it_IT> (italien) :"
566
567 #. type: Plain text
568 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
569 #: opensuse-tumbleweed
570 #, fuzzy, no-wrap
571 #| msgid ""
572 #| "$ B<./a.out fr_FR it_IT>\n"
573 #| "123456,789\n"
574 #| "ven 07 mar 2014 00:26:01 CET\n"
575 msgid ""
576 "$B< ./a.out fr_FR it_IT>;\n"
577 "123456,789\n"
578 "ven 07 mar 2014 00:26:01 CET\n"
579 msgstr ""
580 "$ B<./a.out fr_FR it_IT>\n"
581 "123456,789\n"
582 "ven 07 mar 2014 00:26:01 CET\n"
583
584 #. type: Plain text
585 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
586 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
587 msgid ""
588 "Specify the B<LC_TIME> setting as an empty string, which causes the value to "
589 "be taken from environment variable settings (which, here, specify I<mi_NZ>, "
590 "New Zealand Māori):"
591 msgstr ""
592 "Indiquer un réglage B<LC_TIME> de chaîne vide, ce qui force la valeur à être "
593 "prise des réglages de la variable d’environnement (qui est ici indiquée par "
594 "I<mi_NZ>, maori de Nouvelle-Zélande) :"
595
596 #. type: Plain text
597 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
598 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
599 #, no-wrap
600 msgid ""
601 "$ LC_ALL=mi_NZ ./a.out fr_FR \"\"\n"
602 "123456,789\n"
603 "Te Paraire, te 07 o Poutū-te-rangi, 2014 00:38:44 CET\n"
604 msgstr ""
605 "$ LC_ALL=mi_NZ ./a.out fr_FR \"\"\n"
606 "123456,789\n"
607 "Te Paraire, te 07 o Poutū-te-rangi, 2014 00:38:44 CET\n"
608
609 #. type: SS
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 #, no-wrap
613 msgid "Program source"
614 msgstr "Source du programme"
615
616 #. type: Plain text
617 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
618 #: opensuse-tumbleweed
619 #, fuzzy, no-wrap
620 #| msgid ""
621 #| "#define _XOPEN_SOURCE 700\n"
622 #| "#include E<lt>locale.hE<gt>\n"
623 #| "#include E<lt>stdio.hE<gt>\n"
624 #| "#include E<lt>stdlib.hE<gt>\n"
625 #| "#include E<lt>time.hE<gt>\n"
626 #| "\\&\n"
627 #| "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
628 #| " } while (0)\n"
629 #| "\\&\n"
630 #| "int\n"
631 #| "main(int argc, char *argv[])\n"
632 #| "{\n"
633 #| " char buf[100];\n"
634 #| " time_t t;\n"
635 #| " size_t s;\n"
636 #| " struct tm *tm;\n"
637 #| " locale_t loc, nloc;\n"
638 #| "\\&\n"
639 #| " if (argc E<lt> 2) {\n"
640 #| " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
641 #| " exit(EXIT_FAILURE);\n"
642 #| " }\n"
643 #| "\\&\n"
644 #| " /* Create a new locale object, taking the LC_NUMERIC settings\n"
645 #| " from the locale specified in argv[1]. */\n"
646 #| "\\&\n"
647 #| " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
648 #| " if (loc == (locale_t) 0)\n"
649 #| " errExit(\"newlocale\");\n"
650 #| "\\&\n"
651 #| " /* If a second command-line argument was specified, modify the\n"
652 #| " locale object to take the LC_TIME settings from the locale\n"
653 #| " specified in argv[2]. We assign the result of this newlocale()\n"
654 #| " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n"
655 #| " want to preserve \\[aq]loc\\[aq] if this call fails. */\n"
656 #| "\\&\n"
657 #| " if (argc E<gt> 2) {\n"
658 #| " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
659 #| " if (nloc == (locale_t) 0)\n"
660 #| " errExit(\"newlocale\");\n"
661 #| " loc = nloc;\n"
662 #| " }\n"
663 #| "\\&\n"
664 #| " /* Apply the newly created locale to this thread. */\n"
665 #| "\\&\n"
666 #| " uselocale(loc);\n"
667 #| "\\&\n"
668 #| " /* Test effect of LC_NUMERIC. */\n"
669 #| "\\&\n"
670 #| " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
671 #| "\\&\n"
672 #| " /* Test effect of LC_TIME. */\n"
673 #| "\\&\n"
674 #| " t = time(NULL);\n"
675 #| " tm = localtime(&t);\n"
676 #| " if (tm == NULL)\n"
677 #| " errExit(\"time\");\n"
678 #| "\\&\n"
679 #| " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
680 #| " if (s == 0)\n"
681 #| " errExit(\"strftime\");\n"
682 #| "\\&\n"
683 #| " printf(\"%s\\[rs]n\", buf);\n"
684 #| "\\&\n"
685 #| " /* Free the locale object. */\n"
686 #| "\\&\n"
687 #| " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n"
688 #| " freelocale(loc);\n"
689 #| "\\&\n"
690 #| " exit(EXIT_SUCCESS);\n"
691 #| "}\n"
692 msgid ""
693 "#define _XOPEN_SOURCE 700\n"
694 "#include E<lt>err.hE<gt>\n"
695 "#include E<lt>locale.hE<gt>\n"
696 "#include E<lt>stdio.hE<gt>\n"
697 "#include E<lt>stdlib.hE<gt>\n"
698 "#include E<lt>time.hE<gt>\n"
699 "\\&\n"
700 "int\n"
701 "main(int argc, char *argv[])\n"
702 "{\n"
703 " char buf[100];\n"
704 " time_t t;\n"
705 " size_t s;\n"
706 " struct tm *tm;\n"
707 " locale_t loc, nloc;\n"
708 "\\&\n"
709 " if (argc E<lt> 2) {\n"
710 " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
711 " exit(EXIT_FAILURE);\n"
712 " }\n"
713 "\\&\n"
714 " /* Create a new locale object, taking the LC_NUMERIC settings\n"
715 " from the locale specified in argv[1]. */\n"
716 "\\&\n"
717 " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
718 " if (loc == (locale_t) 0)\n"
719 " err(EXIT_FAILURE, \"newlocale\");\n"
720 "\\&\n"
721 " /* If a second command-line argument was specified, modify the\n"
722 " locale object to take the LC_TIME settings from the locale\n"
723 " specified in argv[2]. We assign the result of this newlocale()\n"
724 " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n"
725 " want to preserve \\[aq]loc\\[aq] if this call fails. */\n"
726 "\\&\n"
727 " if (argc E<gt> 2) {\n"
728 " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
729 " if (nloc == (locale_t) 0)\n"
730 " err(EXIT_FAILURE, \"newlocale\");\n"
731 " loc = nloc;\n"
732 " }\n"
733 "\\&\n"
734 " /* Apply the newly created locale to this thread. */\n"
735 "\\&\n"
736 " uselocale(loc);\n"
737 "\\&\n"
738 " /* Test effect of LC_NUMERIC. */\n"
739 "\\&\n"
740 " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
741 "\\&\n"
742 " /* Test effect of LC_TIME. */\n"
743 "\\&\n"
744 " t = time(NULL);\n"
745 " tm = localtime(&t);\n"
746 " if (tm == NULL)\n"
747 " err(EXIT_FAILURE, \"time\");\n"
748 "\\&\n"
749 " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
750 " if (s == 0)\n"
751 " err(EXIT_FAILURE, \"strftime\");\n"
752 "\\&\n"
753 " printf(\"%s\\[rs]n\", buf);\n"
754 "\\&\n"
755 " /* Free the locale object. */\n"
756 "\\&\n"
757 " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n"
758 " freelocale(loc);\n"
759 "\\&\n"
760 " exit(EXIT_SUCCESS);\n"
761 "}\n"
762 msgstr ""
763 "#define _XOPEN_SOURCE 700\n"
764 "#include E<lt>locale.hE<gt>\n"
765 "#include E<lt>stdio.hE<gt>\n"
766 "#include E<lt>stdlib.hE<gt>\n"
767 "#include E<lt>time.hE<gt>\n"
768 "\\&\n"
769 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
770 " } while (0)\n"
771 "\\&\n"
772 "int\n"
773 "main(int argc, char *argv[])\n"
774 "{\n"
775 " char buf[100];\n"
776 " time_t t;\n"
777 " size_t s;\n"
778 " struct tm *tm;\n"
779 " locale_t loc, nloc;\n"
780 "\\&\n"
781 " if (argc E<lt> 2) {\n"
782 " fprintf(stderr, \"Utilisation : %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
783 " exit(EXIT_FAILURE);\n"
784 " }\n"
785 "\\&\n"
786 " /* Créer un nouvel objet de paramètres régionaux, prenant le réglage\n"
787 " LC_NUMERIC des paramètres régionaux indiqués par argv[1]. */\n"
788 "\\&\n"
789 " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
790 " if (loc == (locale_t) 0)\n"
791 " errExit(\"newlocale\");\n"
792 "\\&\n"
793 " /* Si un deuxième argument de ligne de commande à été indiqué,\n"
794 " modifier l’objet de paramètres régionaux pour prendre le\n"
795 " réglage LC_TIME des paramètres régionaux indiqués par argv[2].\n"
796 " Assignation du résultat de cet appel à newlocale() à « nloc »\n"
797 " plutôt que « loc » afin de pouvoir préserver « loc » si cet\n"
798 " appel échoue. */\n"
799 "\\&\n"
800 " if (argc E<gt> 2) {\n"
801 " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
802 " if (nloc == (locale_t) 0)\n"
803 " errExit(\"newlocale\");\n"
804 " loc = nloc;\n"
805 " }\n"
806 "\\&\n"
807 " /* Appliquer les paramètres régionaux nouvellement créé à\n"
808 " ce thread. */\n"
809 "\\&\n"
810 " uselocale(loc);\n"
811 "\\&\n"
812 " /* Test effect of LC_NUMERIC. */\n"
813 "\\&\n"
814 " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
815 "\\&\n"
816 " /* Tester l’effet de LC_NUMERIC. */\n"
817 "\\&\n"
818 " t = time(NULL);\n"
819 " tm = localtime(&t);\n"
820 " if (tm == NULL)\n"
821 " errExit(\"time\");\n"
822 "\\&\n"
823 " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
824 " if (s == 0)\n"
825 " errExit(\"strftime\");\n"
826 "\\&\n"
827 " printf(\"%s\\[rs]n\", buf);\n"
828 "\\&\n"
829 " /* Libérer l’objet de paramètres régionaux. */\n"
830 "\\&\n"
831 " uselocale(LC_GLOBAL_LOCALE); /* Ainsi \\[aq]loc\\[aq] n'est plus utilisé */\n"
832 " freelocale(loc);\n"
833 "\\&\n"
834 " exit(EXIT_SUCCESS);\n"
835 "}\n"
836
837 #. SRC END
838 #. type: SH
839 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
840 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
841 #, no-wrap
842 msgid "SEE ALSO"
843 msgstr "VOIR AUSSI"
844
845 #. type: Plain text
846 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
847 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
848 msgid ""
849 "B<locale>(1), B<duplocale>(3), B<setlocale>(3), B<uselocale>(3), "
850 "B<locale>(5), B<locale>(7)"
851 msgstr ""
852 "B<locale>(1), B<duplocale>(3), B<setlocale>(3), B<uselocale>(3), "
853 "B<locale>(5), B<locale>(7)"
854
855 #. type: TH
856 #: debian-trixie
857 #, no-wrap
858 msgid "2024-06-15"
859 msgstr "15 juin 2024"
860
861 #. type: TH
862 #: debian-trixie
863 #, no-wrap
864 msgid "Linux man-pages 6.9.1"
865 msgstr "Pages du manuel de Linux 6.9.1"
866
867 #. type: Plain text
868 #: debian-trixie
869 msgid "Standard C library (I<libc>, I<-lc>)"
870 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
871
872 #. type: Plain text
873 #: debian-trixie fedora-44 fedora-rawhide
874 #, no-wrap
875 msgid ""
876 "$ B<./a.out fr_FR>\n"
877 "123456,789\n"
878 "Fri Mar 7 00:25:08 2014\n"
879 msgstr ""
880 "$ B<./a.out fr_FR>\n"
881 "123456,789\n"
882 "Fri Mar 7 00:25:08 2014\n"
883
884 #. type: Plain text
885 #: debian-trixie fedora-44 fedora-rawhide
886 #, no-wrap
887 msgid ""
888 "$ B<./a.out fr_FR it_IT>\n"
889 "123456,789\n"
890 "ven 07 mar 2014 00:26:01 CET\n"
891 msgstr ""
892 "$ B<./a.out fr_FR it_IT>\n"
893 "123456,789\n"
894 "ven 07 mar 2014 00:26:01 CET\n"
895
896 #. type: Plain text
897 #: debian-trixie fedora-44 fedora-rawhide
898 #, no-wrap
899 msgid ""
900 "#define _XOPEN_SOURCE 700\n"
901 "#include E<lt>locale.hE<gt>\n"
902 "#include E<lt>stdio.hE<gt>\n"
903 "#include E<lt>stdlib.hE<gt>\n"
904 "#include E<lt>time.hE<gt>\n"
905 "\\&\n"
906 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
907 " } while (0)\n"
908 "\\&\n"
909 "int\n"
910 "main(int argc, char *argv[])\n"
911 "{\n"
912 " char buf[100];\n"
913 " time_t t;\n"
914 " size_t s;\n"
915 " struct tm *tm;\n"
916 " locale_t loc, nloc;\n"
917 "\\&\n"
918 " if (argc E<lt> 2) {\n"
919 " fprintf(stderr, \"Usage: %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
920 " exit(EXIT_FAILURE);\n"
921 " }\n"
922 "\\&\n"
923 " /* Create a new locale object, taking the LC_NUMERIC settings\n"
924 " from the locale specified in argv[1]. */\n"
925 "\\&\n"
926 " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
927 " if (loc == (locale_t) 0)\n"
928 " errExit(\"newlocale\");\n"
929 "\\&\n"
930 " /* If a second command-line argument was specified, modify the\n"
931 " locale object to take the LC_TIME settings from the locale\n"
932 " specified in argv[2]. We assign the result of this newlocale()\n"
933 " call to \\[aq]nloc\\[aq] rather than \\[aq]loc\\[aq], since in some cases, we might\n"
934 " want to preserve \\[aq]loc\\[aq] if this call fails. */\n"
935 "\\&\n"
936 " if (argc E<gt> 2) {\n"
937 " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
938 " if (nloc == (locale_t) 0)\n"
939 " errExit(\"newlocale\");\n"
940 " loc = nloc;\n"
941 " }\n"
942 "\\&\n"
943 " /* Apply the newly created locale to this thread. */\n"
944 "\\&\n"
945 " uselocale(loc);\n"
946 "\\&\n"
947 " /* Test effect of LC_NUMERIC. */\n"
948 "\\&\n"
949 " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
950 "\\&\n"
951 " /* Test effect of LC_TIME. */\n"
952 "\\&\n"
953 " t = time(NULL);\n"
954 " tm = localtime(&t);\n"
955 " if (tm == NULL)\n"
956 " errExit(\"time\");\n"
957 "\\&\n"
958 " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
959 " if (s == 0)\n"
960 " errExit(\"strftime\");\n"
961 "\\&\n"
962 " printf(\"%s\\[rs]n\", buf);\n"
963 "\\&\n"
964 " /* Free the locale object. */\n"
965 "\\&\n"
966 " uselocale(LC_GLOBAL_LOCALE); /* So \\[aq]loc\\[aq] is no longer in use */\n"
967 " freelocale(loc);\n"
968 "\\&\n"
969 " exit(EXIT_SUCCESS);\n"
970 "}\n"
971 msgstr ""
972 "#define _XOPEN_SOURCE 700\n"
973 "#include E<lt>locale.hE<gt>\n"
974 "#include E<lt>stdio.hE<gt>\n"
975 "#include E<lt>stdlib.hE<gt>\n"
976 "#include E<lt>time.hE<gt>\n"
977 "\\&\n"
978 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
979 " } while (0)\n"
980 "\\&\n"
981 "int\n"
982 "main(int argc, char *argv[])\n"
983 "{\n"
984 " char buf[100];\n"
985 " time_t t;\n"
986 " size_t s;\n"
987 " struct tm *tm;\n"
988 " locale_t loc, nloc;\n"
989 "\\&\n"
990 " if (argc E<lt> 2) {\n"
991 " fprintf(stderr, \"Utilisation : %s locale1 [locale2]\\[rs]n\", argv[0]);\n"
992 " exit(EXIT_FAILURE);\n"
993 " }\n"
994 "\\&\n"
995 " /* Créer un nouvel objet de paramètres régionaux, prenant le réglage\n"
996 " LC_NUMERIC des paramètres régionaux indiqués par argv[1]. */\n"
997 "\\&\n"
998 " loc = newlocale(LC_NUMERIC_MASK, argv[1], (locale_t) 0);\n"
999 " if (loc == (locale_t) 0)\n"
1000 " errExit(\"newlocale\");\n"
1001 "\\&\n"
1002 " /* Si un deuxième argument de ligne de commande à été indiqué,\n"
1003 " modifier l’objet de paramètres régionaux pour prendre le\n"
1004 " réglage LC_TIME des paramètres régionaux indiqués par argv[2].\n"
1005 " Assignation du résultat de cet appel à newlocale() à « nloc »\n"
1006 " plutôt que « loc » afin de pouvoir préserver « loc » si cet\n"
1007 " appel échoue. */\n"
1008 "\\&\n"
1009 " if (argc E<gt> 2) {\n"
1010 " nloc = newlocale(LC_TIME_MASK, argv[2], loc);\n"
1011 " if (nloc == (locale_t) 0)\n"
1012 " errExit(\"newlocale\");\n"
1013 " loc = nloc;\n"
1014 " }\n"
1015 "\\&\n"
1016 " /* Appliquer les paramètres régionaux nouvellement créé à\n"
1017 " ce thread. */\n"
1018 "\\&\n"
1019 " uselocale(loc);\n"
1020 "\\&\n"
1021 " /* Test effect of LC_NUMERIC. */\n"
1022 "\\&\n"
1023 " printf(\"%8.3f\\[rs]n\", 123456.789);\n"
1024 "\\&\n"
1025 " /* Tester l’effet de LC_NUMERIC. */\n"
1026 "\\&\n"
1027 " t = time(NULL);\n"
1028 " tm = localtime(&t);\n"
1029 " if (tm == NULL)\n"
1030 " errExit(\"time\");\n"
1031 "\\&\n"
1032 " s = strftime(buf, sizeof(buf), \"%c\", tm);\n"
1033 " if (s == 0)\n"
1034 " errExit(\"strftime\");\n"
1035 "\\&\n"
1036 " printf(\"%s\\[rs]n\", buf);\n"
1037 "\\&\n"
1038 " /* Libérer l’objet de paramètres régionaux. */\n"
1039 "\\&\n"
1040 " uselocale(LC_GLOBAL_LOCALE); /* Ainsi \\[aq]loc\\[aq] n'est plus utilisé */\n"
1041 " freelocale(loc);\n"
1042 "\\&\n"
1043 " exit(EXIT_SUCCESS);\n"
1044 "}\n"
1045
1046 #. type: TH
1047 #: fedora-44 fedora-rawhide
1048 #, no-wrap
1049 msgid "2024-07-23"
1050 msgstr "23 juillet 2024"
1051
1052 #. type: TH
1053 #: fedora-44 fedora-rawhide
1054 #, no-wrap
1055 msgid "Linux man-pages 6.13"
1056 msgstr "Pages du manuel de Linux 6.13"
1057
1058 #. type: TH
1059 #: mageia-cauldron
1060 #, no-wrap
1061 msgid "Linux man-pages 6.17"
1062 msgstr "Pages du manuel de Linux 6.17"
1063
1064 #. type: TH
1065 #: opensuse-leap-16-1 opensuse-tumbleweed
1066 #, no-wrap
1067 msgid "Linux man-pages (unreleased)"
1068 msgstr "Pages du manuel de Linux (non publiées)"