@@ -68,6 +68,46 @@ our @EXPORT_OK = qw(
68
68
T_FMT_AMPM
69
69
YESEXPR
70
70
YESSTR
71
+ _NL_ADDRESS_POSTAL_FMT
72
+ _NL_ADDRESS_COUNTRY_NAME
73
+ _NL_ADDRESS_COUNTRY_POST
74
+ _NL_ADDRESS_COUNTRY_AB2
75
+ _NL_ADDRESS_COUNTRY_AB3
76
+ _NL_ADDRESS_COUNTRY_CAR
77
+ _NL_ADDRESS_COUNTRY_NUM
78
+ _NL_ADDRESS_COUNTRY_ISBN
79
+ _NL_ADDRESS_LANG_NAME
80
+ _NL_ADDRESS_LANG_AB
81
+ _NL_ADDRESS_LANG_TERM
82
+ _NL_ADDRESS_LANG_LIB
83
+ _NL_IDENTIFICATION_TITLE
84
+ _NL_IDENTIFICATION_SOURCE
85
+ _NL_IDENTIFICATION_ADDRESS
86
+ _NL_IDENTIFICATION_CONTACT
87
+ _NL_IDENTIFICATION_EMAIL
88
+ _NL_IDENTIFICATION_TEL
89
+ _NL_IDENTIFICATION_FAX
90
+ _NL_IDENTIFICATION_LANGUAGE
91
+ _NL_IDENTIFICATION_TERRITORY
92
+ _NL_IDENTIFICATION_AUDIENCE
93
+ _NL_IDENTIFICATION_APPLICATION
94
+ _NL_IDENTIFICATION_ABBREVIATION
95
+ _NL_IDENTIFICATION_REVISION
96
+ _NL_IDENTIFICATION_DATE
97
+ _NL_IDENTIFICATION_CATEGORY
98
+ _NL_MEASUREMENT_MEASUREMENT
99
+ _NL_NAME_NAME_FMT
100
+ _NL_NAME_NAME_GEN
101
+ _NL_NAME_NAME_MR
102
+ _NL_NAME_NAME_MRS
103
+ _NL_NAME_NAME_MISS
104
+ _NL_NAME_NAME_MS
105
+ _NL_PAPER_HEIGHT
106
+ _NL_PAPER_WIDTH
107
+ _NL_TELEPHONE_TEL_INT_FMT
108
+ _NL_TELEPHONE_TEL_DOM_FMT
109
+ _NL_TELEPHONE_INT_SELECT
110
+ _NL_TELEPHONE_INT_PREFIX
71
111
) ;
72
112
73
113
our $VERSION = ' 0.23' ;
@@ -209,6 +249,114 @@ For the eras based on typically some ruler, such as the Japanese Emperor
209
249
210
250
=back
211
251
252
+ In addition, Linux boxes have extra items, as follows. (When called from
253
+ other platform types, these return a stub value, of not much use.)
254
+
255
+ =over
256
+
257
+ =item C<_NL_ADDRESS_POSTAL_FMT >
258
+
259
+ =item C<_NL_ADDRESS_COUNTRY_NAME >
260
+
261
+ =item C<_NL_ADDRESS_COUNTRY_POST >
262
+
263
+ =item C<_NL_ADDRESS_COUNTRY_AB2 >
264
+
265
+ =item C<_NL_ADDRESS_COUNTRY_AB3 >
266
+
267
+ =item C<_NL_ADDRESS_COUNTRY_CAR >
268
+
269
+ =item C<_NL_ADDRESS_COUNTRY_NUM >
270
+
271
+ =item C<_NL_ADDRESS_COUNTRY_ISBN >
272
+
273
+ =item C<_NL_ADDRESS_LANG_NAME >
274
+
275
+ =item C<_NL_ADDRESS_LANG_AB >
276
+
277
+ =item C<_NL_ADDRESS_LANG_TERM >
278
+
279
+ =item C<_NL_ADDRESS_LANG_LIB >
280
+
281
+ On Linux boxes, these return information about the country for the current
282
+ locale. Further information is found in F<langinfo.h>
283
+
284
+ =item C<_NL_IDENTIFICATION_TITLE >
285
+
286
+ =item C<_NL_IDENTIFICATION_SOURCE >
287
+
288
+ =item C<_NL_IDENTIFICATION_ADDRESS >
289
+
290
+ =item C<_NL_IDENTIFICATION_CONTACT >
291
+
292
+ =item C<_NL_IDENTIFICATION_EMAIL >
293
+
294
+ =item C<_NL_IDENTIFICATION_TEL >
295
+
296
+ =item C<_NL_IDENTIFICATION_FAX >
297
+
298
+ =item C<_NL_IDENTIFICATION_LANGUAGE >
299
+
300
+ =item C<_NL_IDENTIFICATION_TERRITORY >
301
+
302
+ =item C<_NL_IDENTIFICATION_AUDIENCE >
303
+
304
+ =item C<_NL_IDENTIFICATION_APPLICATION >
305
+
306
+ =item C<_NL_IDENTIFICATION_ABBREVIATION >
307
+
308
+ =item C<_NL_IDENTIFICATION_REVISION >
309
+
310
+ =item C<_NL_IDENTIFICATION_DATE >
311
+
312
+ =item C<_NL_IDENTIFICATION_CATEGORY >
313
+
314
+ On Linux boxes, these return meta information about the current locale,
315
+ such as how to get in touch with its maintainers.
316
+ Further information is found in F<langinfo.h>
317
+
318
+ =item C<_NL_MEASUREMENT_MEASUREMENT >
319
+
320
+ On Linux boxes, it returns 1 if the metric system of measurement prevails in
321
+ the locale; or 2 if US customary units prevail.
322
+
323
+ =item C<_NL_NAME_NAME_FMT >
324
+
325
+ =item C<_NL_NAME_NAME_GEN >
326
+
327
+ =item C<_NL_NAME_NAME_MR >
328
+
329
+ =item C<_NL_NAME_NAME_MRS >
330
+
331
+ =item C<_NL_NAME_NAME_MISS >
332
+
333
+ =item C<_NL_NAME_NAME_MS >
334
+
335
+ On Linux boxes, these return information about how names are formatted and
336
+ the personal salutations used in the current locale. Further information
337
+ is found in L<locale(7)> and F<langinfo.h>
338
+
339
+ =item C<_NL_PAPER_HEIGHT >
340
+
341
+ =item C<_NL_PAPER_WIDTH >
342
+
343
+ On Linux boxes, these return the standard size of sheets of paper (in
344
+ millimeters) in the current locale.
345
+
346
+ =item C<_NL_TELEPHONE_TEL_INT_FMT >
347
+
348
+ =item C<_NL_TELEPHONE_TEL_DOM_FMT >
349
+
350
+ =item C<_NL_TELEPHONE_INT_SELECT >
351
+
352
+ =item C<_NL_TELEPHONE_INT_PREFIX >
353
+
354
+ On Linux boxes, these return information about how telephone numbers are
355
+ formatted (both domestically and international calling) in the current locale.
356
+ Further information is found in F<langinfo.h>
357
+
358
+ =back
359
+
212
360
=head2 For systems without C<nl_langinfo >
213
361
214
362
This module originally was just a wrapper for the libc C<nl_langinfo >
@@ -275,6 +423,11 @@ L<https://github.com/Perl/perl5/issues>.
275
423
These are derived by using C<strftime() > , and not all versions of that function
276
424
know about them. C<"" > is returned for these on such systems.
277
425
426
+ =item All C<_NL_I<foo > > items
427
+
428
+ These return the same values as they do on boxes that don't have the
429
+ appropriate underlying locale categories.
430
+
278
431
=back
279
432
280
433
See your L<nl_langinfo(3)> for more information about the available
0 commit comments