diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2002-08-12 17:30:56 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2002-08-12 17:30:56 +0000 |
commit | 00701dbfc0ba81ef465015e11e48d9ca21394562 (patch) | |
tree | d8dc0d74ca4a077424be3237c6401c465b5034f6 /perl-install/share/gen_locales.sh | |
parent | a210c173957e68e3a8deeabecff6fd8f4d1cd07b (diff) | |
download | drakx-00701dbfc0ba81ef465015e11e48d9ca21394562.tar drakx-00701dbfc0ba81ef465015e11e48d9ca21394562.tar.gz drakx-00701dbfc0ba81ef465015e11e48d9ca21394562.tar.bz2 drakx-00701dbfc0ba81ef465015e11e48d9ca21394562.tar.xz drakx-00701dbfc0ba81ef465015e11e48d9ca21394562.zip |
locale name <-> charset correspondances better matching what DrakX uses
Diffstat (limited to 'perl-install/share/gen_locales.sh')
-rwxr-xr-x | perl-install/share/gen_locales.sh | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/perl-install/share/gen_locales.sh b/perl-install/share/gen_locales.sh index f2fc0cf3a..b4a52b7c1 100755 --- a/perl-install/share/gen_locales.sh +++ b/perl-install/share/gen_locales.sh @@ -9,15 +9,28 @@ for i in LC_ADDRESS LC_COLLATE LC_CTYPE LC_IDENTIFICATION LC_MEASUREMENT LC_MONE done # lc_ctype for common encoding -for i in CP1251 ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-2 ISO-8859-3 ISO-8859-7 ISO-8859-9 ; do +for i in CP1251 ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-2 ISO-8859-3 ISO-8859-7 ISO-8859-9 ISO-8859-9E ; do f=usr/share/locale/$i/LC_CTYPE [ -e /$f ] || { echo missing /$f ; exit 1 ; } install -D -m 644 /$f $f (cd usr/share/locale/$i ; ln -s ../UTF-8/* . 2>/dev/null) done +az ka vi +# for non common encodings, build them locally to ensure they are present +for i in ISO-8859-9E ARMSCII-8 GEORGIAN-ACADEMY KOI8-K TCVN-5712 +do + /usr/bin/localedef -c -i en_US -f $i ./$i + + f=usr/share/locale/$i/LC_CTYPE + [ -e ./$i/LC_CTYPE ] || { echo missing ./$i/LC_CTYPE ; exit 1 ; } + install -D -m 644 ./$i/LC_CTYPE $f + (cd usr/share/locale/$i ; ln -s ../UTF-8/* . 2>/dev/null) +done + +# lc_ctype for non common encodings rm -rf .tmp2 ; mkdir .tmp2 ; cd .tmp2 -for i in ja ko th vi ; do +for i in ja ko ta th ; do ii=locales-`echo $i | sed 's/\(..\).*/\1/'` rpm2cpio /RPMS/$ii-*.rpm | cpio -id --quiet f=usr/share/locale/$i/LC_CTYPE @@ -47,7 +60,7 @@ cd .. ; rm -rf .tmp2 perl -I../.. ../gen_locales.pl || exit 1 -for i in common C armscii-8 en_US.UTF-8 iso8859-1 iso8859-13 iso8859-14 iso8859-15 iso8859-2 iso8859-3 iso8859-5 iso8859-7 iso8859-9 iso8859-9e ja ko koi8-r koi8-u microsoft-cp1251 microsoft-cp1255 microsoft-cp1256 th_TH vi_VN.tcvn zh_CN zh_TW.big5 ; do +for i in common C armscii-8 en_US.UTF-8 georgian-ps iso8859-1 iso8859-13 iso8859-14 iso8859-15 iso8859-2 iso8859-3 iso8859-5 iso8859-7 iso8859-9 iso8859-9e ja ko koi8-r koi8-u koi8-k microsoft-cp1251 microsoft-cp1255 microsoft-cp1256 th_TH tscii-0 vi_VN.tcvn zh_CN zh_TW.big5 ; do cp -a /usr/X11R6/lib/X11/locale/$i usr/X11R6/lib/X11/locale done |