~ubuntu-branches/ubuntu/hardy/libnss-db/hardy-security

« back to all changes in this revision

Viewing changes to intl/config.charset

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-07-31 18:37:38 UTC
  • Revision ID: james.westby@ubuntu.com-20070731183738-f4u1l3m69i05473u
Tags: 2.2.3pre1-2ubuntu1
debian/rules: explicitely use bash for the install.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Output a system dependent table of character encoding aliases.
3
3
#
4
 
#   Copyright (C) 2000-2001 Free Software Foundation, Inc.
 
4
#   Copyright (C) 2000-2004, 2006 Free Software Foundation, Inc.
5
5
#
6
6
#   This program is free software; you can redistribute it and/or modify it
7
7
#   under the terms of the GNU Library General Public License as published
15
15
#
16
16
#   You should have received a copy of the GNU Library General Public
17
17
#   License along with this program; if not, write to the Free Software
18
 
#   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
 
18
#   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
19
19
#   USA.
20
20
#
21
21
# The table consists of lines of the form
30
30
# MIME charset name is preferred.
31
31
# The current list of GNU canonical charset names is as follows.
32
32
#
33
 
#       name                         used by which systems         a MIME name?
34
 
#   ASCII, ANSI_X3.4-1968     glibc solaris freebsd
35
 
#   ISO-8859-1                glibc aix hpux irix osf solaris freebsd   yes
36
 
#   ISO-8859-2                glibc aix hpux irix osf solaris freebsd   yes
37
 
#   ISO-8859-3                glibc                                     yes
38
 
#   ISO-8859-4                osf solaris freebsd                       yes
39
 
#   ISO-8859-5                glibc aix hpux irix osf solaris freebsd   yes
40
 
#   ISO-8859-6                glibc aix hpux solaris                    yes
41
 
#   ISO-8859-7                glibc aix hpux irix osf solaris           yes
42
 
#   ISO-8859-8                glibc aix hpux osf solaris                yes
43
 
#   ISO-8859-9                glibc aix hpux irix osf solaris           yes
44
 
#   ISO-8859-13               glibc
45
 
#   ISO-8859-15               glibc aix osf solaris freebsd
46
 
#   KOI8-R                    glibc solaris freebsd                     yes
47
 
#   KOI8-U                    glibc freebsd                             yes
48
 
#   CP437                     dos
49
 
#   CP775                     dos
50
 
#   CP850                     aix osf dos
51
 
#   CP852                     dos
52
 
#   CP855                     dos
53
 
#   CP856                     aix
54
 
#   CP857                     dos
55
 
#   CP861                     dos
56
 
#   CP862                     dos
57
 
#   CP864                     dos
58
 
#   CP865                     dos
59
 
#   CP866                     freebsd dos
60
 
#   CP869                     dos
61
 
#   CP874                     win32 dos
62
 
#   CP922                     aix
63
 
#   CP932                     aix win32 dos
64
 
#   CP943                     aix
65
 
#   CP949                     osf win32 dos
66
 
#   CP950                     win32 dos
67
 
#   CP1046                    aix
68
 
#   CP1124                    aix
69
 
#   CP1129                    aix
70
 
#   CP1250                    win32
71
 
#   CP1251                    glibc win32
72
 
#   CP1252                    aix win32
73
 
#   CP1253                    win32
74
 
#   CP1254                    win32
75
 
#   CP1255                    win32
76
 
#   CP1256                    win32
77
 
#   CP1257                    win32
78
 
#   GB2312                    glibc aix hpux irix solaris freebsd       yes
79
 
#   EUC-JP                    glibc aix hpux irix osf solaris freebsd   yes
80
 
#   EUC-KR                    glibc aix hpux irix osf solaris freebsd   yes
81
 
#   EUC-TW                    glibc aix hpux irix osf solaris
82
 
#   BIG5                      glibc aix hpux osf solaris freebsd        yes
83
 
#   BIG5HKSCS                 glibc
84
 
#   GBK                       aix osf win32 dos
85
 
#   GB18030                   glibc
86
 
#   SJIS                      hpux osf solaris freebsd
87
 
#   JOHAB                     glibc win32
88
 
#   TIS-620                   glibc aix hpux osf solaris
89
 
#   VISCII                    glibc                                     yes
90
 
#   HP-ROMAN8                 hpux
91
 
#   HP-ARABIC8                hpux
92
 
#   HP-GREEK8                 hpux
93
 
#   HP-HEBREW8                hpux
94
 
#   HP-TURKISH8               hpux
95
 
#   HP-KANA8                  hpux
96
 
#   DEC-KANJI                 osf
97
 
#   DEC-HANYU                 osf
98
 
#   UTF-8                     glibc aix hpux osf solaris                yes
 
33
#       name              MIME?             used by which systems
 
34
#   ASCII, ANSI_X3.4-1968       glibc solaris freebsd netbsd darwin
 
35
#   ISO-8859-1              Y   glibc aix hpux irix osf solaris freebsd netbsd darwin
 
36
#   ISO-8859-2              Y   glibc aix hpux irix osf solaris freebsd netbsd darwin
 
37
#   ISO-8859-3              Y   glibc solaris
 
38
#   ISO-8859-4              Y   osf solaris freebsd netbsd darwin
 
39
#   ISO-8859-5              Y   glibc aix hpux irix osf solaris freebsd netbsd darwin
 
40
#   ISO-8859-6              Y   glibc aix hpux solaris
 
41
#   ISO-8859-7              Y   glibc aix hpux irix osf solaris netbsd darwin
 
42
#   ISO-8859-8              Y   glibc aix hpux osf solaris
 
43
#   ISO-8859-9              Y   glibc aix hpux irix osf solaris darwin
 
44
#   ISO-8859-13                 glibc netbsd darwin
 
45
#   ISO-8859-14                 glibc
 
46
#   ISO-8859-15                 glibc aix osf solaris freebsd darwin
 
47
#   KOI8-R                  Y   glibc solaris freebsd netbsd darwin
 
48
#   KOI8-U                  Y   glibc freebsd netbsd darwin
 
49
#   KOI8-T                      glibc
 
50
#   CP437                       dos
 
51
#   CP775                       dos
 
52
#   CP850                       aix osf dos
 
53
#   CP852                       dos
 
54
#   CP855                       dos
 
55
#   CP856                       aix
 
56
#   CP857                       dos
 
57
#   CP861                       dos
 
58
#   CP862                       dos
 
59
#   CP864                       dos
 
60
#   CP865                       dos
 
61
#   CP866                       freebsd netbsd darwin dos
 
62
#   CP869                       dos
 
63
#   CP874                       woe32 dos
 
64
#   CP922                       aix
 
65
#   CP932                       aix woe32 dos
 
66
#   CP943                       aix
 
67
#   CP949                       osf woe32 dos
 
68
#   CP950                       woe32 dos
 
69
#   CP1046                      aix
 
70
#   CP1124                      aix
 
71
#   CP1125                      dos
 
72
#   CP1129                      aix
 
73
#   CP1250                      woe32
 
74
#   CP1251                      glibc solaris netbsd darwin woe32
 
75
#   CP1252                      aix woe32
 
76
#   CP1253                      woe32
 
77
#   CP1254                      woe32
 
78
#   CP1255                      glibc woe32
 
79
#   CP1256                      woe32
 
80
#   CP1257                      woe32
 
81
#   GB2312                  Y   glibc aix hpux irix solaris freebsd netbsd darwin
 
82
#   EUC-JP                  Y   glibc aix hpux irix osf solaris freebsd netbsd darwin
 
83
#   EUC-KR                  Y   glibc aix hpux irix osf solaris freebsd netbsd darwin
 
84
#   EUC-TW                      glibc aix hpux irix osf solaris netbsd
 
85
#   BIG5                    Y   glibc aix hpux osf solaris freebsd netbsd darwin
 
86
#   BIG5-HKSCS                  glibc solaris
 
87
#   GBK                         glibc aix osf solaris woe32 dos
 
88
#   GB18030                     glibc solaris netbsd
 
89
#   SHIFT_JIS               Y   hpux osf solaris freebsd netbsd darwin
 
90
#   JOHAB                       glibc solaris woe32
 
91
#   TIS-620                     glibc aix hpux osf solaris
 
92
#   VISCII                  Y   glibc
 
93
#   TCVN5712-1                  glibc
 
94
#   GEORGIAN-PS                 glibc
 
95
#   HP-ROMAN8                   hpux
 
96
#   HP-ARABIC8                  hpux
 
97
#   HP-GREEK8                   hpux
 
98
#   HP-HEBREW8                  hpux
 
99
#   HP-TURKISH8                 hpux
 
100
#   HP-KANA8                    hpux
 
101
#   DEC-KANJI                   osf
 
102
#   DEC-HANYU                   osf
 
103
#   UTF-8                   Y   glibc aix hpux osf solaris netbsd darwin
99
104
#
100
105
# Note: Names which are not marked as being a MIME name should not be used in
101
106
# Internet protocols for information interchange (mail, news, etc.).
116
121
# List of references, updated during installation:
117
122
echo "# Packages using this file: "
118
123
case "$os" in
 
124
    linux-gnulibc1*)
 
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.
 
128
        echo "C ASCII"
 
129
        echo "POSIX ASCII"
 
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 \
 
137
                 sv_FI sv_SE; do
 
138
          echo "$l ISO-8859-1"
 
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"
 
150
        done
 
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
 
153
          echo "$l ISO-8859-2"
 
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"
 
158
        done
 
159
        for l in mk mk_MK ru ru_RU; do
 
160
          echo "$l ISO-8859-5"
 
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"
 
166
        done
 
167
        for l in ar ar_SA; do
 
168
          echo "$l ISO-8859-6"
 
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"
 
174
        done
 
175
        for l in el el_GR gr gr_GR; do
 
176
          echo "$l ISO-8859-7"
 
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"
 
183
        done
 
184
        for l in he he_IL iw iw_IL; do
 
185
          echo "$l ISO-8859-8"
 
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"
 
190
        done
 
191
        for l in tr tr_TR; do
 
192
          echo "$l ISO-8859-9"
 
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"
 
197
        done
 
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"
 
201
        done
 
202
        for l in ru_UA uk uk_UA; do
 
203
          echo "$l KOI8-U"
 
204
        done
 
205
        for l in zh zh_CN; do
 
206
          #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name
 
207
          echo "$l GB2312"
 
208
        done
 
209
        for l in ja ja_JP ja_JP.EUC; do
 
210
          echo "$l EUC-JP"
 
211
        done
 
212
        for l in ko ko_KR; do
 
213
          echo "$l EUC-KR"
 
214
        done
 
215
        for l in th th_TH; do
 
216
          echo "$l TIS-620"
 
217
        done
 
218
        for l in fa fa_IR; do
 
219
          #echo "$l ISIRI-3342" # a broken encoding
 
220
          echo "$l.utf-8 UTF-8"
 
221
        done
 
222
        ;;
119
223
    linux* | *-gnu*)
120
224
        # With glibc-2.1 or newer, we don't need any canonicalization,
121
225
        # because glibc has iconv and both glibc and libiconv support all
174
278
        echo "eucTW EUC-TW"
175
279
        echo "hp15CN GB2312"
176
280
        #echo "ccdc ?" # what is this?
177
 
        echo "SJIS SJIS"
 
281
        echo "SJIS SHIFT_JIS"
178
282
        echo "utf8 UTF-8"
179
283
        ;;
180
284
    irix*)
209
313
        echo "GBK GBK"
210
314
        echo "KSC5601 CP949"
211
315
        echo "sdeckanji EUC-JP"
212
 
        echo "SJIS SJIS"
 
316
        echo "SJIS SHIFT_JIS"
213
317
        echo "TACTIS TIS-620"
214
318
        echo "UTF-8 UTF-8"
215
319
        ;;
217
321
        echo "646 ASCII"
218
322
        echo "ISO8859-1 ISO-8859-1"
219
323
        echo "ISO8859-2 ISO-8859-2"
 
324
        echo "ISO8859-3 ISO-8859-3"
220
325
        echo "ISO8859-4 ISO-8859-4"
221
326
        echo "ISO8859-5 ISO-8859-5"
222
327
        echo "ISO8859-6 ISO-8859-6"
225
330
        echo "ISO8859-9 ISO-8859-9"
226
331
        echo "ISO8859-15 ISO-8859-15"
227
332
        echo "koi8-r KOI8-R"
 
333
        echo "ansi-1251 CP1251"
228
334
        echo "BIG5 BIG5"
 
335
        echo "Big5-HKSCS BIG5-HKSCS"
229
336
        echo "gb2312 GB2312"
 
337
        echo "GBK GBK"
 
338
        echo "GB18030 GB18030"
230
339
        echo "cns11643 EUC-TW"
231
340
        echo "5601 EUC-KR"
 
341
        echo "ko_KR.johap92 JOHAB"
232
342
        echo "eucJP EUC-JP"
233
 
        echo "PCK SJIS"
 
343
        echo "PCK SHIFT_JIS"
234
344
        echo "TIS620.2533 TIS-620"
235
345
        #echo "sun_eu_greek ?" # what is this?
236
346
        echo "UTF-8 UTF-8"
237
347
        ;;
238
 
    freebsd*)
 
348
    freebsd* | os2*)
239
349
        # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
240
350
        # localcharset.c falls back to using the full locale name
241
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.
242
354
        echo "C ASCII"
243
355
        echo "US-ASCII ASCII"
244
356
        for l in la_LN lt_LN; do
266
378
        echo "zh_TW.Big5 BIG5"
267
379
        echo "zh_CN.EUC GB2312"
268
380
        echo "ja_JP.EUC EUC-JP"
269
 
        echo "ja_JP.SJIS SJIS"
270
 
        echo "ja_JP.Shift_JIS SJIS"
271
 
        echo "ko_KR.EUC EUC-KR"
 
381
        echo "ja_JP.SJIS SHIFT_JIS"
 
382
        echo "ja_JP.Shift_JIS SHIFT_JIS"
 
383
        echo "ko_KR.EUC EUC-KR"
 
384
        ;;
 
385
    netbsd*)
 
386
        echo "646 ASCII"
 
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"
 
394
        echo "eucCN GB2312"
 
395
        echo "eucJP EUC-JP"
 
396
        echo "eucKR EUC-KR"
 
397
        echo "eucTW EUC-TW"
 
398
        echo "BIG5 BIG5"
 
399
        echo "SJIS SHIFT_JIS"
 
400
        ;;
 
401
    darwin[56]*)
 
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.
 
405
        echo "C ASCII"
 
406
        for l in en_AU en_CA en_GB en_US la_LN; do
 
407
          echo "$l.US-ASCII ASCII"
 
408
        done
 
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
 
412
          echo "$l ISO-8859-1"
 
413
          echo "$l.ISO8859-1 ISO-8859-1"
 
414
          echo "$l.ISO8859-15 ISO-8859-15"
 
415
        done
 
416
        for l in la_LN; do
 
417
          echo "$l.ISO8859-1 ISO-8859-1"
 
418
          echo "$l.ISO8859-15 ISO-8859-15"
 
419
        done
 
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"
 
422
        done
 
423
        for l in la_LN lt_LT; do
 
424
          echo "$l.ISO8859-4 ISO-8859-4"
 
425
        done
 
426
        for l in ru_RU; do
 
427
          echo "$l.KOI8-R KOI8-R"
 
428
          echo "$l.ISO8859-5 ISO-8859-5"
 
429
          echo "$l.CP866 CP866"
 
430
        done
 
431
        for l in bg_BG; do
 
432
          echo "$l.CP1251 CP1251"
 
433
        done
 
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"
 
441
        ;;
 
442
    darwin*)
 
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
 
446
        #   LC_CTYPE file.
 
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."
 
454
        #   It also says
 
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.
 
470
        echo "* UTF-8"
272
471
        ;;
273
472
    beos*)
274
473
        # BeOS has a single locale, and it has UTF-8 encoding.
283
482
        echo "# If you find that the encoding given for your language and"
284
483
        echo "# country is not the one your DOS machine actually uses, just"
285
484
        echo "# correct it in this file, and send a mail to"
286
 
        echo "# Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>"
287
 
        echo "# and Bruno Haible <haible@clisp.cons.org>."
 
485
        echo "# Juan Manuel Guerrero <juan.guerrero@gmx.de>"
 
486
        echo "# and Bruno Haible <bruno@clisp.org>."
288
487
        echo "#"
289
488
        echo "C ASCII"
290
489
        # ISO-8859-1 languages
383
582
        echo "sq CP852"
384
583
        echo "sq_AL CP852"
385
584
        echo "sr CP852"    # CP852 or CP866 or CP855 ??
 
585
        echo "sr_CS CP852" # CP852 or CP866 or CP855 ??
386
586
        echo "sr_YU CP852" # CP852 or CP866 or CP855 ??
387
587
        # ISO-8859-3 languages
388
588
        echo "mt CP850"
394
594
        echo "bg_BG CP866" # not CP855 ??
395
595
        echo "mk CP866"    # not CP855 ??
396
596
        echo "mk_MK CP866" # not CP855 ??
397
 
        echo "ru KOI8-R"    # not CP866 ??
398
 
        echo "ru_RU KOI8-R" # not CP866 ??
 
597
        echo "ru CP866"
 
598
        echo "ru_RU CP866"
 
599
        echo "uk CP1125"
 
600
        echo "uk_UA CP1125"
399
601
        # ISO-8859-6 languages
400
602
        echo "ar CP864"
401
603
        echo "ar_AE CP864"