121
124
# List of references, updated during installation:
122
125
echo "# Packages using this file: "
125
# Linux libc5 doesn't have nl_langinfo(CODESET); therefore
126
# localcharset.c falls back to using the full locale name
127
# from the environment variables.
130
for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \
131
en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \
132
en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \
133
es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \
134
et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \
135
fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \
136
it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \
139
echo "$l.iso-8859-1 ISO-8859-1"
140
echo "$l.iso-8859-15 ISO-8859-15"
141
echo "$l.iso-8859-15@euro ISO-8859-15"
142
echo "$l@euro ISO-8859-15"
143
echo "$l.cp-437 CP437"
144
echo "$l.cp-850 CP850"
145
echo "$l.cp-1252 CP1252"
146
echo "$l.cp-1252@euro CP1252"
147
#echo "$l.atari-st ATARI-ST" # not a commonly used encoding
148
echo "$l.utf-8 UTF-8"
149
echo "$l.utf-8@euro UTF-8"
151
for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \
152
sl_SI sr sr_CS sr_YU; do
154
echo "$l.iso-8859-2 ISO-8859-2"
155
echo "$l.cp-852 CP852"
156
echo "$l.cp-1250 CP1250"
157
echo "$l.utf-8 UTF-8"
159
for l in mk mk_MK ru ru_RU; do
161
echo "$l.iso-8859-5 ISO-8859-5"
162
echo "$l.koi8-r KOI8-R"
163
echo "$l.cp-866 CP866"
164
echo "$l.cp-1251 CP1251"
165
echo "$l.utf-8 UTF-8"
167
for l in ar ar_SA; do
169
echo "$l.iso-8859-6 ISO-8859-6"
170
echo "$l.cp-864 CP864"
171
#echo "$l.cp-868 CP868" # not a commonly used encoding
172
echo "$l.cp-1256 CP1256"
173
echo "$l.utf-8 UTF-8"
175
for l in el el_GR gr gr_GR; do
177
echo "$l.iso-8859-7 ISO-8859-7"
178
echo "$l.cp-869 CP869"
179
echo "$l.cp-1253 CP1253"
180
echo "$l.cp-1253@euro CP1253"
181
echo "$l.utf-8 UTF-8"
182
echo "$l.utf-8@euro UTF-8"
184
for l in he he_IL iw iw_IL; do
186
echo "$l.iso-8859-8 ISO-8859-8"
187
echo "$l.cp-862 CP862"
188
echo "$l.cp-1255 CP1255"
189
echo "$l.utf-8 UTF-8"
191
for l in tr tr_TR; do
193
echo "$l.iso-8859-9 ISO-8859-9"
194
echo "$l.cp-857 CP857"
195
echo "$l.cp-1254 CP1254"
196
echo "$l.utf-8 UTF-8"
198
for l in lt lt_LT lv lv_LV; do
199
#echo "$l BALTIC" # not a commonly used encoding, wrong encoding name
200
echo "$l ISO-8859-13"
202
for l in ru_UA uk uk_UA; do
205
for l in zh zh_CN; do
206
#echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name
209
for l in ja ja_JP ja_JP.EUC; do
212
for l in ko ko_KR; do
215
for l in th th_TH; do
218
for l in fa fa_IR; do
219
#echo "$l ISIRI-3342" # a broken encoding
220
echo "$l.utf-8 UTF-8"
224
# With glibc-2.1 or newer, we don't need any canonicalization,
225
# because glibc has iconv and both glibc and libiconv support all
226
# GNU canonical names directly. Therefore, the Makefile does not
227
# need to install the alias file at all.
228
# The following applies only to glibc-2.0.x and older libcs.
229
echo "ISO_646.IRV:1983 ASCII"
232
echo "ISO8859-1 ISO-8859-1"
233
echo "ISO8859-2 ISO-8859-2"
234
echo "ISO8859-5 ISO-8859-5"
235
echo "ISO8859-6 ISO-8859-6"
236
echo "ISO8859-7 ISO-8859-7"
237
echo "ISO8859-8 ISO-8859-8"
238
echo "ISO8859-9 ISO-8859-9"
239
echo "ISO8859-15 ISO-8859-15"
242
echo "IBM-921 ISO-8859-13"
246
echo "IBM-1046 CP1046"
247
echo "IBM-1124 CP1124"
248
echo "IBM-1129 CP1129"
249
echo "IBM-1252 CP1252"
250
echo "IBM-eucCN GB2312"
251
echo "IBM-eucJP EUC-JP"
252
echo "IBM-eucKR EUC-KR"
253
echo "IBM-eucTW EUC-TW"
256
echo "TIS-620 TIS-620"
260
echo "iso88591 ISO-8859-1"
261
echo "iso88592 ISO-8859-2"
262
echo "iso88595 ISO-8859-5"
263
echo "iso88596 ISO-8859-6"
264
echo "iso88597 ISO-8859-7"
265
echo "iso88598 ISO-8859-8"
266
echo "iso88599 ISO-8859-9"
267
echo "iso885915 ISO-8859-15"
268
echo "roman8 HP-ROMAN8"
269
echo "arabic8 HP-ARABIC8"
270
echo "greek8 HP-GREEK8"
271
echo "hebrew8 HP-HEBREW8"
272
echo "turkish8 HP-TURKISH8"
273
echo "kana8 HP-KANA8"
274
echo "tis620 TIS-620"
280
#echo "ccdc ?" # what is this?
281
echo "SJIS SHIFT_JIS"
285
echo "ISO8859-1 ISO-8859-1"
286
echo "ISO8859-2 ISO-8859-2"
287
echo "ISO8859-5 ISO-8859-5"
288
echo "ISO8859-7 ISO-8859-7"
289
echo "ISO8859-9 ISO-8859-9"
296
echo "ISO8859-1 ISO-8859-1"
297
echo "ISO8859-2 ISO-8859-2"
298
echo "ISO8859-4 ISO-8859-4"
299
echo "ISO8859-5 ISO-8859-5"
300
echo "ISO8859-7 ISO-8859-7"
301
echo "ISO8859-8 ISO-8859-8"
302
echo "ISO8859-9 ISO-8859-9"
303
echo "ISO8859-15 ISO-8859-15"
306
echo "dechanyu DEC-HANYU"
307
echo "dechanzi GB2312"
308
echo "deckanji DEC-KANJI"
309
echo "deckorean EUC-KR"
315
echo "sdeckanji EUC-JP"
316
echo "SJIS SHIFT_JIS"
317
echo "TACTIS TIS-620"
322
echo "ISO8859-1 ISO-8859-1"
323
echo "ISO8859-2 ISO-8859-2"
324
echo "ISO8859-3 ISO-8859-3"
325
echo "ISO8859-4 ISO-8859-4"
326
echo "ISO8859-5 ISO-8859-5"
327
echo "ISO8859-6 ISO-8859-6"
328
echo "ISO8859-7 ISO-8859-7"
329
echo "ISO8859-8 ISO-8859-8"
330
echo "ISO8859-9 ISO-8859-9"
331
echo "ISO8859-15 ISO-8859-15"
333
echo "ansi-1251 CP1251"
335
echo "Big5-HKSCS BIG5-HKSCS"
338
echo "GB18030 GB18030"
339
echo "cns11643 EUC-TW"
341
echo "ko_KR.johap92 JOHAB"
344
echo "TIS620.2533 TIS-620"
345
#echo "sun_eu_greek ?" # what is this?
349
# FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
350
# localcharset.c falls back to using the full locale name
351
# from the environment variables.
352
# Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just
353
# reuse FreeBSD's locale data for OS/2.
355
echo "US-ASCII ASCII"
356
for l in la_LN lt_LN; do
357
echo "$l.ASCII ASCII"
359
for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
360
fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
361
lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do
362
echo "$l.ISO_8859-1 ISO-8859-1"
363
echo "$l.DIS_8859-15 ISO-8859-15"
365
for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do
366
echo "$l.ISO_8859-2 ISO-8859-2"
368
for l in la_LN lt_LT; do
369
echo "$l.ISO_8859-4 ISO-8859-4"
371
for l in ru_RU ru_SU; do
372
echo "$l.KOI8-R KOI8-R"
373
echo "$l.ISO_8859-5 ISO-8859-5"
374
echo "$l.CP866 CP866"
376
echo "uk_UA.KOI8-U KOI8-U"
377
echo "zh_TW.BIG5 BIG5"
378
echo "zh_TW.Big5 BIG5"
379
echo "zh_CN.EUC GB2312"
380
echo "ja_JP.EUC EUC-JP"
381
echo "ja_JP.SJIS SHIFT_JIS"
382
echo "ja_JP.Shift_JIS SHIFT_JIS"
383
echo "ko_KR.EUC EUC-KR"
387
echo "ISO8859-1 ISO-8859-1"
388
echo "ISO8859-2 ISO-8859-2"
389
echo "ISO8859-4 ISO-8859-4"
390
echo "ISO8859-5 ISO-8859-5"
391
echo "ISO8859-7 ISO-8859-7"
392
echo "ISO8859-13 ISO-8859-13"
393
echo "ISO8859-15 ISO-8859-15"
399
echo "SJIS SHIFT_JIS"
402
# Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore
403
# localcharset.c falls back to using the full locale name
404
# from the environment variables.
406
for l in en_AU en_CA en_GB en_US la_LN; do
407
echo "$l.US-ASCII ASCII"
409
for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
410
fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \
411
nl_NL no_NO pt_PT sv_SE; do
413
echo "$l.ISO8859-1 ISO-8859-1"
414
echo "$l.ISO8859-15 ISO-8859-15"
417
echo "$l.ISO8859-1 ISO-8859-1"
418
echo "$l.ISO8859-15 ISO-8859-15"
420
for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do
421
echo "$l.ISO8859-2 ISO-8859-2"
423
for l in la_LN lt_LT; do
424
echo "$l.ISO8859-4 ISO-8859-4"
427
echo "$l.KOI8-R KOI8-R"
428
echo "$l.ISO8859-5 ISO-8859-5"
429
echo "$l.CP866 CP866"
432
echo "$l.CP1251 CP1251"
434
echo "uk_UA.KOI8-U KOI8-U"
435
echo "zh_TW.BIG5 BIG5"
436
echo "zh_TW.Big5 BIG5"
437
echo "zh_CN.EUC GB2312"
438
echo "ja_JP.EUC EUC-JP"
439
echo "ja_JP.SJIS SHIFT_JIS"
440
echo "ko_KR.EUC EUC-KR"
443
# Darwin 7.5 has nl_langinfo(CODESET), but it is useless:
444
# - It returns the empty string when LANG is set to a locale of the
445
# form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8
447
# - The environment variables LANG, LC_CTYPE, LC_ALL are not set by
448
# the system; nl_langinfo(CODESET) returns "US-ASCII" in this case.
449
# - The documentation says:
450
# "... all code that calls BSD system routines should ensure
451
# that the const *char parameters of these routines are in UTF-8
452
# encoding. All BSD system functions expect their string
453
# parameters to be in UTF-8 encoding and nothing else."
455
# "An additional caveat is that string parameters for files,
456
# paths, and other file-system entities must be in canonical
457
# UTF-8. In a canonical UTF-8 Unicode string, all decomposable
458
# characters are decomposed ..."
459
# but this is not true: You can pass non-decomposed UTF-8 strings
460
# to file system functions, and it is the OS which will convert
461
# them to decomposed UTF-8 before accessing the file system.
462
# - The Apple Terminal application displays UTF-8 by default.
463
# - However, other applications are free to use different encodings:
464
# - xterm uses ISO-8859-1 by default.
465
# - TextEdit uses MacRoman by default.
466
# We prefer UTF-8 over decomposed UTF-8-MAC because one should
467
# minimize the use of decomposed Unicode. Unfortunately, through the
468
# Darwin file system, decomposed UTF-8 strings are leaked into user
469
# space nevertheless.
473
# BeOS has a single locale, and it has UTF-8 encoding.
477
# DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore
478
# localcharset.c falls back to using the full locale name
479
# from the environment variables.
481
echo "# The encodings given here may not all be correct."
482
echo "# If you find that the encoding given for your language and"
483
echo "# country is not the one your DOS machine actually uses, just"
484
echo "# correct it in this file, and send a mail to"
485
echo "# Juan Manuel Guerrero <juan.guerrero@gmx.de>"
486
echo "# and Bruno Haible <bruno@clisp.org>."
489
# ISO-8859-1 languages
492
echo "da CP865" # not CP850 ??
493
echo "da_DK CP865" # not CP850 ??
499
echo "en_AU CP850" # not CP437 ??
504
echo "en_ZA CP850" # not CP437 ??
542
echo "id CP850" # not CP437 ??
543
echo "id_ID CP850" # not CP437 ??
544
echo "is CP861" # not CP850 ??
545
echo "is_IS CP861" # not CP850 ??
553
echo "nb CP865" # not CP850 ??
554
echo "nb_NO CP865" # not CP850 ??
558
echo "nn CP865" # not CP850 ??
559
echo "nn_NO CP865" # not CP850 ??
560
echo "no CP865" # not CP850 ??
561
echo "no_NO CP865" # not CP850 ??
567
# ISO-8859-2 languages
584
echo "sr CP852" # CP852 or CP866 or CP855 ??
585
echo "sr_CS CP852" # CP852 or CP866 or CP855 ??
586
echo "sr_YU CP852" # CP852 or CP866 or CP855 ??
587
# ISO-8859-3 languages
590
# ISO-8859-5 languages
593
echo "bg CP866" # not CP855 ??
594
echo "bg_BG CP866" # not CP855 ??
595
echo "mk CP866" # not CP855 ??
596
echo "mk_MK CP866" # not CP855 ??
601
# ISO-8859-6 languages
615
# ISO-8859-7 languages
618
# ISO-8859-8 languages
621
# ISO-8859-9 languages
629
echo "zh_TW CP950" # not CP938 ??
631
echo "kr CP949" # not CP934 ??
632
echo "kr_KR CP949" # not CP934 ??
128
# Linux libc5 doesn't have nl_langinfo(CODESET); therefore
129
# localcharset.c falls back to using the full locale name
130
# from the environment variables.
133
for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \
134
en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \
135
en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \
136
es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \
137
et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \
138
fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \
139
it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \
142
echo "$l.iso-8859-1 ISO-8859-1"
143
echo "$l.iso-8859-15 ISO-8859-15"
144
echo "$l.iso-8859-15@euro ISO-8859-15"
145
echo "$l@euro ISO-8859-15"
146
echo "$l.cp-437 CP437"
147
echo "$l.cp-850 CP850"
148
echo "$l.cp-1252 CP1252"
149
echo "$l.cp-1252@euro CP1252"
150
#echo "$l.atari-st ATARI-ST" # not a commonly used encoding
151
echo "$l.utf-8 UTF-8"
152
echo "$l.utf-8@euro UTF-8"
154
for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \
155
sl_SI sr sr_CS sr_YU; do
157
echo "$l.iso-8859-2 ISO-8859-2"
158
echo "$l.cp-852 CP852"
159
echo "$l.cp-1250 CP1250"
160
echo "$l.utf-8 UTF-8"
162
for l in mk mk_MK ru ru_RU; do
164
echo "$l.iso-8859-5 ISO-8859-5"
165
echo "$l.koi8-r KOI8-R"
166
echo "$l.cp-866 CP866"
167
echo "$l.cp-1251 CP1251"
168
echo "$l.utf-8 UTF-8"
170
for l in ar ar_SA; do
172
echo "$l.iso-8859-6 ISO-8859-6"
173
echo "$l.cp-864 CP864"
174
#echo "$l.cp-868 CP868" # not a commonly used encoding
175
echo "$l.cp-1256 CP1256"
176
echo "$l.utf-8 UTF-8"
178
for l in el el_GR gr gr_GR; do
180
echo "$l.iso-8859-7 ISO-8859-7"
181
echo "$l.cp-869 CP869"
182
echo "$l.cp-1253 CP1253"
183
echo "$l.cp-1253@euro CP1253"
184
echo "$l.utf-8 UTF-8"
185
echo "$l.utf-8@euro UTF-8"
187
for l in he he_IL iw iw_IL; do
189
echo "$l.iso-8859-8 ISO-8859-8"
190
echo "$l.cp-862 CP862"
191
echo "$l.cp-1255 CP1255"
192
echo "$l.utf-8 UTF-8"
194
for l in tr tr_TR; do
196
echo "$l.iso-8859-9 ISO-8859-9"
197
echo "$l.cp-857 CP857"
198
echo "$l.cp-1254 CP1254"
199
echo "$l.utf-8 UTF-8"
201
for l in lt lt_LT lv lv_LV; do
202
#echo "$l BALTIC" # not a commonly used encoding, wrong encoding name
203
echo "$l ISO-8859-13"
205
for l in ru_UA uk uk_UA; do
208
for l in zh zh_CN; do
209
#echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name
212
for l in ja ja_JP ja_JP.EUC; do
215
for l in ko ko_KR; do
218
for l in th th_TH; do
221
for l in fa fa_IR; do
222
#echo "$l ISIRI-3342" # a broken encoding
223
echo "$l.utf-8 UTF-8"
227
# With glibc-2.1 or newer, we don't need any canonicalization,
228
# because glibc has iconv and both glibc and libiconv support all
229
# GNU canonical names directly. Therefore, the Makefile does not
230
# need to install the alias file at all.
231
# The following applies only to glibc-2.0.x and older libcs.
232
echo "ISO_646.IRV:1983 ASCII"
235
echo "ISO8859-1 ISO-8859-1"
236
echo "ISO8859-2 ISO-8859-2"
237
echo "ISO8859-5 ISO-8859-5"
238
echo "ISO8859-6 ISO-8859-6"
239
echo "ISO8859-7 ISO-8859-7"
240
echo "ISO8859-8 ISO-8859-8"
241
echo "ISO8859-9 ISO-8859-9"
242
echo "ISO8859-15 ISO-8859-15"
245
echo "IBM-921 ISO-8859-13"
249
echo "IBM-1046 CP1046"
250
echo "IBM-1124 CP1124"
251
echo "IBM-1129 CP1129"
252
echo "IBM-1252 CP1252"
253
echo "IBM-eucCN GB2312"
254
echo "IBM-eucJP EUC-JP"
255
echo "IBM-eucKR EUC-KR"
256
echo "IBM-eucTW EUC-TW"
259
echo "TIS-620 TIS-620"
263
echo "iso88591 ISO-8859-1"
264
echo "iso88592 ISO-8859-2"
265
echo "iso88595 ISO-8859-5"
266
echo "iso88596 ISO-8859-6"
267
echo "iso88597 ISO-8859-7"
268
echo "iso88598 ISO-8859-8"
269
echo "iso88599 ISO-8859-9"
270
echo "iso885915 ISO-8859-15"
271
echo "roman8 HP-ROMAN8"
272
echo "arabic8 HP-ARABIC8"
273
echo "greek8 HP-GREEK8"
274
echo "hebrew8 HP-HEBREW8"
275
echo "turkish8 HP-TURKISH8"
276
echo "kana8 HP-KANA8"
277
echo "tis620 TIS-620"
283
#echo "ccdc ?" # what is this?
284
echo "SJIS SHIFT_JIS"
288
echo "ISO8859-1 ISO-8859-1"
289
echo "ISO8859-2 ISO-8859-2"
290
echo "ISO8859-5 ISO-8859-5"
291
echo "ISO8859-7 ISO-8859-7"
292
echo "ISO8859-9 ISO-8859-9"
299
echo "ISO8859-1 ISO-8859-1"
300
echo "ISO8859-2 ISO-8859-2"
301
echo "ISO8859-4 ISO-8859-4"
302
echo "ISO8859-5 ISO-8859-5"
303
echo "ISO8859-7 ISO-8859-7"
304
echo "ISO8859-8 ISO-8859-8"
305
echo "ISO8859-9 ISO-8859-9"
306
echo "ISO8859-15 ISO-8859-15"
309
echo "dechanyu DEC-HANYU"
310
echo "dechanzi GB2312"
311
echo "deckanji DEC-KANJI"
312
echo "deckorean EUC-KR"
318
echo "sdeckanji EUC-JP"
319
echo "SJIS SHIFT_JIS"
320
echo "TACTIS TIS-620"
325
echo "ISO8859-1 ISO-8859-1"
326
echo "ISO8859-2 ISO-8859-2"
327
echo "ISO8859-3 ISO-8859-3"
328
echo "ISO8859-4 ISO-8859-4"
329
echo "ISO8859-5 ISO-8859-5"
330
echo "ISO8859-6 ISO-8859-6"
331
echo "ISO8859-7 ISO-8859-7"
332
echo "ISO8859-8 ISO-8859-8"
333
echo "ISO8859-9 ISO-8859-9"
334
echo "ISO8859-15 ISO-8859-15"
336
echo "ansi-1251 CP1251"
338
echo "Big5-HKSCS BIG5-HKSCS"
341
echo "GB18030 GB18030"
342
echo "cns11643 EUC-TW"
344
echo "ko_KR.johap92 JOHAB"
347
echo "TIS620.2533 TIS-620"
348
#echo "sun_eu_greek ?" # what is this?
352
# FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
353
# localcharset.c falls back to using the full locale name
354
# from the environment variables.
355
# Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just
356
# reuse FreeBSD's locale data for OS/2.
358
echo "US-ASCII ASCII"
359
for l in la_LN lt_LN; do
360
echo "$l.ASCII ASCII"
362
for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
363
fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
364
lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do
365
echo "$l.ISO_8859-1 ISO-8859-1"
366
echo "$l.DIS_8859-15 ISO-8859-15"
368
for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do
369
echo "$l.ISO_8859-2 ISO-8859-2"
371
for l in la_LN lt_LT; do
372
echo "$l.ISO_8859-4 ISO-8859-4"
374
for l in ru_RU ru_SU; do
375
echo "$l.KOI8-R KOI8-R"
376
echo "$l.ISO_8859-5 ISO-8859-5"
377
echo "$l.CP866 CP866"
379
echo "uk_UA.KOI8-U KOI8-U"
380
echo "zh_TW.BIG5 BIG5"
381
echo "zh_TW.Big5 BIG5"
382
echo "zh_CN.EUC GB2312"
383
echo "ja_JP.EUC EUC-JP"
384
echo "ja_JP.SJIS SHIFT_JIS"
385
echo "ja_JP.Shift_JIS SHIFT_JIS"
386
echo "ko_KR.EUC EUC-KR"
390
echo "ISO8859-1 ISO-8859-1"
391
echo "ISO8859-2 ISO-8859-2"
392
echo "ISO8859-4 ISO-8859-4"
393
echo "ISO8859-5 ISO-8859-5"
394
echo "ISO8859-7 ISO-8859-7"
395
echo "ISO8859-13 ISO-8859-13"
396
echo "ISO8859-15 ISO-8859-15"
402
echo "SJIS SHIFT_JIS"
406
echo "ISO8859-1 ISO-8859-1"
407
echo "ISO8859-2 ISO-8859-2"
408
echo "ISO8859-4 ISO-8859-4"
409
echo "ISO8859-5 ISO-8859-5"
410
echo "ISO8859-7 ISO-8859-7"
411
echo "ISO8859-13 ISO-8859-13"
412
echo "ISO8859-15 ISO-8859-15"
415
# Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore
416
# localcharset.c falls back to using the full locale name
417
# from the environment variables.
419
for l in en_AU en_CA en_GB en_US la_LN; do
420
echo "$l.US-ASCII ASCII"
422
for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
423
fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \
424
nl_NL no_NO pt_PT sv_SE; do
426
echo "$l.ISO8859-1 ISO-8859-1"
427
echo "$l.ISO8859-15 ISO-8859-15"
430
echo "$l.ISO8859-1 ISO-8859-1"
431
echo "$l.ISO8859-15 ISO-8859-15"
433
for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do
434
echo "$l.ISO8859-2 ISO-8859-2"
436
for l in la_LN lt_LT; do
437
echo "$l.ISO8859-4 ISO-8859-4"
440
echo "$l.KOI8-R KOI8-R"
441
echo "$l.ISO8859-5 ISO-8859-5"
442
echo "$l.CP866 CP866"
445
echo "$l.CP1251 CP1251"
447
echo "uk_UA.KOI8-U KOI8-U"
448
echo "zh_TW.BIG5 BIG5"
449
echo "zh_TW.Big5 BIG5"
450
echo "zh_CN.EUC GB2312"
451
echo "ja_JP.EUC EUC-JP"
452
echo "ja_JP.SJIS SHIFT_JIS"
453
echo "ko_KR.EUC EUC-KR"
456
# Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is
458
# - It returns the empty string when LANG is set to a locale of the
459
# form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8
461
# - The environment variables LANG, LC_CTYPE, LC_ALL are not set by
462
# the system; nl_langinfo(CODESET) returns "US-ASCII" in this case.
463
# - The documentation says:
464
# "... all code that calls BSD system routines should ensure
465
# that the const *char parameters of these routines are in UTF-8
466
# encoding. All BSD system functions expect their string
467
# parameters to be in UTF-8 encoding and nothing else."
469
# "An additional caveat is that string parameters for files,
470
# paths, and other file-system entities must be in canonical
471
# UTF-8. In a canonical UTF-8 Unicode string, all decomposable
472
# characters are decomposed ..."
473
# but this is not true: You can pass non-decomposed UTF-8 strings
474
# to file system functions, and it is the OS which will convert
475
# them to decomposed UTF-8 before accessing the file system.
476
# - The Apple Terminal application displays UTF-8 by default.
477
# - However, other applications are free to use different encodings:
478
# - xterm uses ISO-8859-1 by default.
479
# - TextEdit uses MacRoman by default.
480
# We prefer UTF-8 over decomposed UTF-8-MAC because one should
481
# minimize the use of decomposed Unicode. Unfortunately, through the
482
# Darwin file system, decomposed UTF-8 strings are leaked into user
483
# space nevertheless.
484
# Then there are also the locales with encodings other than US-ASCII
485
# and UTF-8. These locales can be occasionally useful to users (e.g.
486
# when grepping through ISO-8859-1 encoded text files), when all their
487
# file names are in US-ASCII.
488
echo "ISO8859-1 ISO-8859-1"
489
echo "ISO8859-2 ISO-8859-2"
490
echo "ISO8859-4 ISO-8859-4"
491
echo "ISO8859-5 ISO-8859-5"
492
echo "ISO8859-7 ISO-8859-7"
493
echo "ISO8859-9 ISO-8859-9"
494
echo "ISO8859-13 ISO-8859-13"
495
echo "ISO8859-15 ISO-8859-15"
507
echo "Big5HKSCS BIG5-HKSCS"
509
echo "GB18030 GB18030"
510
echo "SJIS SHIFT_JIS"
511
echo "ARMSCII-8 ARMSCII-8"
517
# BeOS and Haiku have a single locale, and it has UTF-8 encoding.
521
# DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore
522
# localcharset.c falls back to using the full locale name
523
# from the environment variables.
525
echo "# The encodings given here may not all be correct."
526
echo "# If you find that the encoding given for your language and"
527
echo "# country is not the one your DOS machine actually uses, just"
528
echo "# correct it in this file, and send a mail to"
529
echo "# Juan Manuel Guerrero <juan.guerrero@gmx.de>"
530
echo "# and Bruno Haible <bruno@clisp.org>."
533
# ISO-8859-1 languages
536
echo "da CP865" # not CP850 ??
537
echo "da_DK CP865" # not CP850 ??
543
echo "en_AU CP850" # not CP437 ??
548
echo "en_ZA CP850" # not CP437 ??
586
echo "id CP850" # not CP437 ??
587
echo "id_ID CP850" # not CP437 ??
588
echo "is CP861" # not CP850 ??
589
echo "is_IS CP861" # not CP850 ??
597
echo "nb CP865" # not CP850 ??
598
echo "nb_NO CP865" # not CP850 ??
602
echo "nn CP865" # not CP850 ??
603
echo "nn_NO CP865" # not CP850 ??
604
echo "no CP865" # not CP850 ??
605
echo "no_NO CP865" # not CP850 ??
611
# ISO-8859-2 languages
628
echo "sr CP852" # CP852 or CP866 or CP855 ??
629
echo "sr_CS CP852" # CP852 or CP866 or CP855 ??
630
echo "sr_YU CP852" # CP852 or CP866 or CP855 ??
631
# ISO-8859-3 languages
634
# ISO-8859-5 languages
637
echo "bg CP866" # not CP855 ??
638
echo "bg_BG CP866" # not CP855 ??
639
echo "mk CP866" # not CP855 ??
640
echo "mk_MK CP866" # not CP855 ??
645
# ISO-8859-6 languages
659
# ISO-8859-7 languages
662
# ISO-8859-8 languages
665
# ISO-8859-9 languages
673
echo "zh_TW CP950" # not CP938 ??
675
echo "kr CP949" # not CP934 ??
676
echo "kr_KR CP949" # not CP934 ??