~ubuntu-branches/ubuntu/lucid/coreutils/lucid-updates

« back to all changes in this revision

Viewing changes to lib/config.charset

  • Committer: Bazaar Package Importer
  • Author(s): Michael Stone
  • Date: 2009-02-22 12:36:29 UTC
  • mto: (1.2.1 upstream) (5.1.3 sid)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20090222123629-nqyzcikzk591uza2
Tags: upstream-7.1
ImportĀ upstreamĀ versionĀ 7.1

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-2004, 2006-2007 Free Software Foundation, Inc.
 
4
#   Copyright (C) 2000-2004, 2006-2009 Free Software Foundation, Inc.
5
5
#
6
6
#   This program is free software; you can redistribute it and/or modify
7
7
#   it under the terms of the GNU General Public License as published by
63
63
#   CP922                       aix
64
64
#   CP932                       aix woe32 dos
65
65
#   CP943                       aix
66
 
#   CP949                       osf woe32 dos
 
66
#   CP949                       osf darwin woe32 dos
67
67
#   CP950                       woe32 dos
68
68
#   CP1046                      aix
69
69
#   CP1124                      aix
70
70
#   CP1125                      dos
71
71
#   CP1129                      aix
 
72
#   CP1131                      darwin
72
73
#   CP1250                      woe32
73
74
#   CP1251                      glibc solaris netbsd openbsd darwin woe32
74
75
#   CP1252                      aix woe32
82
83
#   EUC-KR                  Y   glibc aix hpux irix osf solaris freebsd netbsd darwin
83
84
#   EUC-TW                      glibc aix hpux irix osf solaris netbsd
84
85
#   BIG5                    Y   glibc aix hpux osf solaris freebsd netbsd darwin
85
 
#   BIG5-HKSCS                  glibc solaris
86
 
#   GBK                         glibc aix osf solaris woe32 dos
87
 
#   GB18030                     glibc solaris netbsd
 
86
#   BIG5-HKSCS                  glibc solaris darwin
 
87
#   GBK                         glibc aix osf solaris darwin woe32 dos
 
88
#   GB18030                     glibc solaris netbsd darwin
88
89
#   SHIFT_JIS               Y   hpux osf solaris freebsd netbsd darwin
89
90
#   JOHAB                       glibc solaris woe32
90
91
#   TIS-620                     glibc aix hpux osf solaris
91
92
#   VISCII                  Y   glibc
92
93
#   TCVN5712-1                  glibc
 
94
#   ARMSCII-8                   glibc darwin
93
95
#   GEORGIAN-PS                 glibc
 
96
#   PT154                       glibc
94
97
#   HP-ROMAN8                   hpux
95
98
#   HP-ARABIC8                  hpux
96
99
#   HP-GREEK8                   hpux
449
452
        echo "ko_KR.EUC EUC-KR"
450
453
        ;;
451
454
    darwin*)
452
 
        # Darwin 7.5 has nl_langinfo(CODESET), but it is useless:
 
455
        # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is
 
456
        # useless:
453
457
        # - It returns the empty string when LANG is set to a locale of the
454
458
        #   form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8
455
459
        #   LC_CTYPE file.
476
480
        # minimize the use of decomposed Unicode. Unfortunately, through the
477
481
        # Darwin file system, decomposed UTF-8 strings are leaked into user
478
482
        # space nevertheless.
 
483
        # Then there are also the locales with encodings other than US-ASCII
 
484
        # and UTF-8. These locales can be occasionally useful to users (e.g.
 
485
        # when grepping through ISO-8859-1 encoded text files), when all their
 
486
        # file names are in US-ASCII.
 
487
        echo "ISO8859-1 ISO-8859-1"
 
488
        echo "ISO8859-2 ISO-8859-2"
 
489
        echo "ISO8859-4 ISO-8859-4"
 
490
        echo "ISO8859-5 ISO-8859-5"
 
491
        echo "ISO8859-7 ISO-8859-7"
 
492
        echo "ISO8859-9 ISO-8859-9"
 
493
        echo "ISO8859-13 ISO-8859-13"
 
494
        echo "ISO8859-15 ISO-8859-15"
 
495
        echo "KOI8-R KOI8-R"
 
496
        echo "KOI8-U KOI8-U"
 
497
        echo "CP866 CP866"
 
498
        echo "CP949 CP949"
 
499
        echo "CP1131 CP1131"
 
500
        echo "CP1251 CP1251"
 
501
        echo "eucCN GB2312"
 
502
        echo "GB2312 GB2312"
 
503
        echo "eucJP EUC-JP"
 
504
        echo "eucKR EUC-KR"
 
505
        echo "Big5 BIG5"
 
506
        echo "Big5HKSCS BIG5-HKSCS"
 
507
        echo "GBK GBK"
 
508
        echo "GB18030 GB18030"
 
509
        echo "SJIS SHIFT_JIS"
 
510
        echo "ARMSCII-8 ARMSCII-8"
 
511
        echo "PT154 PT154"
 
512
        #echo "ISCII-DEV ?"
479
513
        echo "* UTF-8"
480
514
        ;;
481
 
    beos*)
482
 
        # BeOS has a single locale, and it has UTF-8 encoding.
 
515
    beos* | haiku*)
 
516
        # BeOS and Haiku have a single locale, and it has UTF-8 encoding.
483
517
        echo "* UTF-8"
484
518
        ;;
485
519
    msdosdjgpp*)