3 # Prints a table of the charsets (system dependent name and portable name)
6 ${CC-cc} -o locale_codeset locale_codeset.c
7 ${CC-cc} -o locale_charset
-I..
/include locale_charset.c \
8 -DHAVE_CONFIG_H -I..
-DLIBDIR='"'`cd ../lib && pwd`'"' \
11 printf '%-15s%-17s%-17s %-17s\n\n' \
12 "locale name" "locale charmap" "nl_langinfo(CODESET)" "locale_charset()"
13 for lc
in `./all-locales | sort | uniq`
15 charmap
=`LC_ALL=$lc ./locale_charmap 2>/dev/null || echo '<error>'`
16 codeset
=`LC_ALL=$lc ./locale_codeset 2>/dev/null || echo '<error>'`
17 charset
=`LC_ALL=$lc ./locale_charset 2>/dev/null || echo '<error>'`
19 ASCII | ANSI_X3.4
-1968 | \
20 ISO-8859-1 | ISO-8859-2 | ISO-8859-3 | ISO-8859-4 | ISO-8859-5 | ISO-8859-6 | \
21 ISO-8859-7 | ISO-8859-8 | ISO-8859-9 | ISO-8859-13 | ISO-8859-15 | \
23 CP437 | CP775 | CP850 | CP852 | CP855 | CP856 | CP857 | CP861 | CP862 | CP864 | CP865 | CP866 | CP869 | CP874 | CP922 | CP932 | CP943 | CP949 | CP950 | CP1046 | CP1124 | CP1129 | \
24 CP1250 | CP1251 | CP1252 | CP1253 | CP1254 | CP1255 | CP1256 | CP1257 | \
25 GB2312 | EUC-JP | EUC-KR | EUC-TW | BIG5 | BIG5HKSCS | GBK | GB18030 | SJIS | JOHAB | \
27 HP-ROMAN8 | HP-ARABIC8 | HP-GREEK8 | HP-HEBREW8 | HP-TURKISH8 | HP-KANA8 | \
28 DEC-KANJI | DEC-HANYU | \
32 printf '%-15s %-17s %-17s %-17s %s\n' \
33 "$lc" "$charmap" "$codeset" "$charset" "$comment"