Debian Codegraph @

templates/man3/duplocale.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:23+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "duplocale"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "duplocale - duplicate a locale object"
50 msgstr ""
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr ""
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>locale.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<locale_t duplocale(locale_t >I<locobj>B<);>\n"
84 msgstr ""
85
86 #. type: Plain text
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 msgid ""
90 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid "B<duplocale>():"
97 msgstr ""
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid ""
104 " Since glibc 2.10:\n"
105 " _XOPEN_SOURCE E<gt>= 700\n"
106 " Before glibc 2.10:\n"
107 " _GNU_SOURCE\n"
108 msgstr ""
109
110 #. type: SH
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid "DESCRIPTION"
115 msgstr ""
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 ""
121 "The B<duplocale>() function creates a duplicate of the locale object "
122 "referred to by I<locobj>."
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "If I<locobj> is B<LC_GLOBAL_LOCALE>, B<duplocale>() creates a locale object "
130 "containing a copy of the global locale determined by B<setlocale>(3)."
131 msgstr ""
132
133 #. type: SH
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 #, no-wrap
137 msgid "RETURN VALUE"
138 msgstr ""
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "On success, B<duplocale>() returns a handle for the new locale object. On "
145 "error, it returns I<(locale_t)\\ 0>, and sets I<errno> to indicate the error."
146 msgstr ""
147
148 #. type: SH
149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
151 #, no-wrap
152 msgid "ERRORS"
153 msgstr ""
154
155 #. type: TP
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "B<ENOMEM>"
160 msgstr ""
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid "Insufficient memory to create the duplicate locale object."
166 msgstr ""
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "STANDARDS"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid "POSIX.1-2008."
179 msgstr ""
180
181 #. type: SH
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "HISTORY"
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid "glibc 2.3."
192 msgstr ""
193
194 #. type: SH
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "NOTES"
199 msgstr ""
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid "Duplicating a locale can serve the following purposes:"
205 msgstr ""
206
207 #. type: IP
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 #, no-wrap
211 msgid "\\[bu]"
212 msgstr ""
213
214 #. type: Plain text
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 msgid ""
218 "To create a copy of a locale object in which one of more categories are to "
219 "be modified (using B<newlocale>(3))."
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "To obtain a handle for the current locale which can used in other functions "
227 "that employ a locale handle, such as B<toupper_l>(3). This is done by "
228 "applying B<duplocale>() to the value returned by the following call:"
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "loc = uselocale((locale_t) 0);\n"
236 msgstr ""
237
238 #. type: Plain text
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 msgid ""
242 "This technique is necessary, because the above B<uselocale>(3) call may "
243 "return the value B<LC_GLOBAL_LOCALE>, which results in undefined behavior if "
244 "passed to functions such as B<toupper_l>(3). Calling B<duplocale>() can be "
245 "used to ensure that the B<LC_GLOBAL_LOCALE> value is converted into a usable "
246 "locale object. See EXAMPLES, below."
247 msgstr ""
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 "Each locale object created by B<duplocale>() should be deallocated using "
254 "B<freelocale>(3)."
255 msgstr ""
256
257 #. type: SH
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "EXAMPLES"
262 msgstr ""
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid ""
268 "The program below uses B<uselocale>(3) and B<duplocale>() to obtain a "
269 "handle for the current locale which is then passed to B<toupper_l>(3). The "
270 "program takes one command-line argument, a string of characters that is "
271 "converted to uppercase and displayed on standard output. An example of its "
272 "use is the following:"
273 msgstr ""
274
275 #. type: Plain text
276 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
277 #: opensuse-tumbleweed
278 #, no-wrap
279 msgid ""
280 "$B< ./a.out abc>;\n"
281 "ABC\n"
282 msgstr ""
283
284 #. type: SS
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 #, no-wrap
288 msgid "Program source"
289 msgstr ""
290
291 #. type: Plain text
292 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
293 #: opensuse-tumbleweed
294 #, no-wrap
295 msgid ""
296 "#define _XOPEN_SOURCE 700\n"
297 "#include E<lt>ctype.hE<gt>\n"
298 "#include E<lt>err.hE<gt>\n"
299 "#include E<lt>locale.hE<gt>\n"
300 "#include E<lt>stdio.hE<gt>\n"
301 "#include E<lt>stdlib.hE<gt>\n"
302 "\\&\n"
303 "int\n"
304 "main(int argc, char *argv[])\n"
305 "{\n"
306 " locale_t loc, nloc;\n"
307 "\\&\n"
308 " if (argc != 2) {\n"
309 " fprintf(stderr, \"Usage: %s string\\[rs]n\", argv[0]);\n"
310 " exit(EXIT_FAILURE);\n"
311 " }\n"
312 "\\&\n"
313 " /* This sequence is necessary, because uselocale() might return\n"
314 " the value LC_GLOBAL_LOCALE, which can\\[aq]t be passed as an\n"
315 " argument to toupper_l(). */\n"
316 "\\&\n"
317 " loc = uselocale((locale_t) 0);\n"
318 " if (loc == (locale_t) 0)\n"
319 " err(EXIT_FAILURE, \"uselocale\");\n"
320 "\\&\n"
321 " nloc = duplocale(loc);\n"
322 " if (nloc == (locale_t) 0)\n"
323 " err(EXIT_FAILURE, \"duplocale\");\n"
324 "\\&\n"
325 " for (char *p = argv[1]; *p; p++)\n"
326 " putchar(toupper_l(*p, nloc));\n"
327 "\\&\n"
328 " printf(\"\\[rs]n\");\n"
329 "\\&\n"
330 " freelocale(nloc);\n"
331 "\\&\n"
332 " exit(EXIT_SUCCESS);\n"
333 "}\n"
334 msgstr ""
335
336 #. SRC END
337 #. type: SH
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 #, no-wrap
341 msgid "SEE ALSO"
342 msgstr ""
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "B<freelocale>(3), B<newlocale>(3), B<setlocale>(3), B<uselocale>(3), "
349 "B<locale>(5), B<locale>(7)"
350 msgstr ""
351
352 #. type: TH
353 #: debian-trixie
354 #, no-wrap
355 msgid "2024-06-15"
356 msgstr ""
357
358 #. type: TH
359 #: debian-trixie
360 #, no-wrap
361 msgid "Linux man-pages 6.9.1"
362 msgstr ""
363
364 #. type: Plain text
365 #: debian-trixie
366 msgid "Standard C library (I<libc>, I<-lc>)"
367 msgstr ""
368
369 #. type: Plain text
370 #: debian-trixie fedora-44 fedora-rawhide
371 #, no-wrap
372 msgid ""
373 "$ B<./a.out abc>\n"
374 "ABC\n"
375 msgstr ""
376
377 #. type: Plain text
378 #: debian-trixie fedora-44 fedora-rawhide
379 #, no-wrap
380 msgid ""
381 "#define _XOPEN_SOURCE 700\n"
382 "#include E<lt>ctype.hE<gt>\n"
383 "#include E<lt>locale.hE<gt>\n"
384 "#include E<lt>stdio.hE<gt>\n"
385 "#include E<lt>stdlib.hE<gt>\n"
386 "\\&\n"
387 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
388 " } while (0)\n"
389 "\\&\n"
390 "int\n"
391 "main(int argc, char *argv[])\n"
392 "{\n"
393 " locale_t loc, nloc;\n"
394 "\\&\n"
395 " if (argc != 2) {\n"
396 " fprintf(stderr, \"Usage: %s string\\[rs]n\", argv[0]);\n"
397 " exit(EXIT_FAILURE);\n"
398 " }\n"
399 "\\&\n"
400 " /* This sequence is necessary, because uselocale() might return\n"
401 " the value LC_GLOBAL_LOCALE, which can\\[aq]t be passed as an\n"
402 " argument to toupper_l(). */\n"
403 "\\&\n"
404 " loc = uselocale((locale_t) 0);\n"
405 " if (loc == (locale_t) 0)\n"
406 " errExit(\"uselocale\");\n"
407 "\\&\n"
408 " nloc = duplocale(loc);\n"
409 " if (nloc == (locale_t) 0)\n"
410 " errExit(\"duplocale\");\n"
411 "\\&\n"
412 " for (char *p = argv[1]; *p; p++)\n"
413 " putchar(toupper_l(*p, nloc));\n"
414 "\\&\n"
415 " printf(\"\\[rs]n\");\n"
416 "\\&\n"
417 " freelocale(nloc);\n"
418 "\\&\n"
419 " exit(EXIT_SUCCESS);\n"
420 "}\n"
421 msgstr ""
422
423 #. type: TH
424 #: fedora-44 fedora-rawhide
425 #, no-wrap
426 msgid "2024-07-23"
427 msgstr ""
428
429 #. type: TH
430 #: fedora-44 fedora-rawhide
431 #, no-wrap
432 msgid "Linux man-pages 6.13"
433 msgstr ""
434
435 #. type: TH
436 #: mageia-cauldron
437 #, no-wrap
438 msgid "Linux man-pages 6.17"
439 msgstr ""
440
441 #. type: TH
442 #: opensuse-leap-16-1 opensuse-tumbleweed
443 #, no-wrap
444 msgid "Linux man-pages (unreleased)"
445 msgstr ""