Include <config.h> if HAVE_CONFIG_H.
[gnulib.git] / lib / config.charset
index 6104d5f..83f0b79 100755 (executable)
 # MIME charset name is preferred.
 # The current list of GNU canonical charset names is as follows.
 #
-#       name                         used by which systems
-#   ASCII                     glibc solaris
-#   ISO-8859-1                glibc aix hpux irix osf solaris
-#   ISO-8859-2                glibc aix hpux irix solaris
-#   ISO-8859-4                solaris
-#   ISO-8859-5                glibc aix hpux irix solaris
-#   ISO-8859-6                aix hpux solaris
-#   ISO-8859-7                glibc aix hpux irix osf solaris
-#   ISO-8859-8                glibc aix hpux solaris
-#   ISO-8859-9                glibc aix hpux irix osf solaris
+#       name                         used by which systems         a MIME name?
+#   ASCII, ANSI_X3.4-1968     glibc solaris
+#   ISO-8859-1                glibc aix hpux irix osf solaris           yes
+#   ISO-8859-2                glibc aix hpux irix solaris               yes
+#   ISO-8859-4                solaris                                   yes
+#   ISO-8859-5                glibc aix hpux irix solaris               yes
+#   ISO-8859-6                aix hpux solaris                          yes
+#   ISO-8859-7                glibc aix hpux irix osf solaris           yes
+#   ISO-8859-8                glibc aix hpux solaris                    yes
+#   ISO-8859-9                glibc aix hpux irix osf solaris           yes
 #   ISO-8859-13               glibc
 #   ISO-8859-15               aix solaris
-#   KOI8-R                    glibc solaris
-#   KOI8-U                    glibc
+#   KOI8-R                    glibc solaris                             yes
+#   KOI8-U                    glibc                                     yes
 #   CP850                     aix osf
 #   CP856                     aix
-#   CP921                     aix
 #   CP922                     aix
 #   CP932                     aix
 #   CP943                     aix
 #   CP1129                    aix
 #   CP1252                    aix
 #   EUC-CN                    aix hpux solaris
-#   EUC-JP                    aix hpux solaris
-#   EUC-KR                    aix hpux solaris
+#   EUC-JP                    aix hpux solaris                          yes
+#   EUC-KR                    aix hpux solaris                          yes
 #   EUC-TW                    aix hpux solaris
-#   BIG5                      aix hpux solaris
+#   BIG5                      aix hpux solaris                          yes
 #   GBK                       aix
 #   SJIS                      hpux solaris
 #   TIS-620                   aix hpux solaris
 #   HP-HEBREW8                hpux
 #   HP-TURKISH8               hpux
 #   HP-KANA8                  hpux
-#   UTF-8                     glibc aix hpux solaris
+#   UTF-8                     glibc aix hpux solaris                    yes
+#
+# Note: Names which are not marked as being a MIME name should not be used in
+# Internet protocols for information interchange (mail, news, etc.).
+#
+# Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications
+# must understand both names and treat them as equivalent.
 #
 # The first argument passed to this file is the canonical host specification,
 #    CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
@@ -80,13 +85,16 @@ os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'`
 echo "# This file contains a table of character encoding aliases,"
 echo "# suitable for operating system '${os}'."
 echo "# It was automatically generated from config.charset."
+# List of references, updated during installation:
+echo "# Packages using this file: "
 case "$os" in
     linux* | *-gnu*)
-       # With glibc we don't need any canonicalization, because glibc
-       # supports all GNU canonical names directly.
-       echo "ANSI_X3.4-1968 ASCII" # this is a nop
-       echo "ISO_646.IRV:1983 ASCII" # this is a nop
-       echo "BALTIC ISO-8859-13" # in glibc-2.2 or newer, this is a nop
+       # With glibc-2.1 or newer, we don't need any canonicalization,
+       # because glibc has iconv and both glibc and libiconv support all
+       # GNU canonical names directly. Therefore, the Makefile does not
+       # need to install the alias file at all.
+       # The following applies only to glibc-2.0.x and older libcs.
+       echo "ISO_646.IRV:1983 ASCII"
        ;;
     aix*)
        echo "ISO8859-1 ISO-8859-1"
@@ -99,7 +107,7 @@ case "$os" in
        echo "ISO8859-15 ISO-8859-15"
        echo "IBM-850 CP850"
        echo "IBM-856 CP856"
-       echo "IBM-921 CP921"
+       echo "IBM-921 ISO-8859-13"
        echo "IBM-922 CP922"
        echo "IBM-932 CP932"
        echo "IBM-943 CP943"