[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patches for OS/2 (2)
From: |
Andreas Buening |
Subject: |
Re: Patches for OS/2 (2) |
Date: |
Sun, 17 Nov 2002 19:20:44 +0100 |
Bruno Haible wrote:
[snip]
> If charset.alias does not contain a given locale name, then the first
> thing to consider is: a user error. On a system without built-in
> locales, tell the user to set LANG=de_DE.ISO-8859-1. If FreeBSD users
> can do that, OS/2 users can do it as well. If you don't agree with
> this, then add the missing locale names to config.charset - in the
> OS/2 specific part, of course.
I added aliases for xx_XX and xx without the trailing codeset
".ISO-xxxx". Is this convenient?
-----------------------
--- old/gettext-0.11.5/intl/config.charset Mon May 13 09:58:22 2002
+++ gnu/gettext-0.11.5/intl/config.charset Sun Nov 17 19:11:48 2002
@@ -245,12 +245,45 @@
#echo "sun_eu_greek ?" # what is this?
echo "UTF-8 UTF-8"
;;
- freebsd* | os2*)
+ freebsd*)
# FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
# localcharset.c falls back to using the full locale name
# from the environment variables.
+ echo "C ASCII"
+ echo "US-ASCII ASCII"
+ for l in la_LN lt_LN; do
+ echo "$l.ASCII ASCII"
+ done
+ for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
+ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
+ lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do
+ echo "$l.ISO_8859-1 ISO-8859-1"
+ echo "$l.DIS_8859-15 ISO-8859-15"
+ done
+ for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do
+ echo "$l.ISO_8859-2 ISO-8859-2"
+ done
+ for l in la_LN lt_LT; do
+ echo "$l.ISO_8859-4 ISO-8859-4"
+ done
+ for l in ru_RU ru_SU; do
+ echo "$l.KOI8-R KOI8-R"
+ echo "$l.ISO_8859-5 ISO-8859-5"
+ echo "$l.CP866 CP866"
+ done
+ echo "uk_UA.KOI8-U KOI8-U"
+ echo "zh_TW.BIG5 BIG5"
+ echo "zh_TW.Big5 BIG5"
+ echo "zh_CN.EUC GB2312"
+ echo "ja_JP.EUC EUC-JP"
+ echo "ja_JP.SJIS SHIFT_JIS"
+ echo "ja_JP.Shift_JIS SHIFT_JIS"
+ echo "ko_KR.EUC EUC-KR"
+ ;;
+ os2*)
# Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just
- # reuse FreeBSD's locale data for OS/2.
+ # reuse FreeBSD's locale data for OS/2. Allow ALIAS names without
+ # trailing ".ISO_*". What should be the default for "la" and "lt"?
echo "C ASCII"
echo "US-ASCII ASCII"
for l in la_LN lt_LN; do
@@ -259,11 +292,18 @@
for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do
+ echo "$l ISO-8859-1"
echo "$l.ISO_8859-1 ISO-8859-1"
echo "$l.DIS_8859-15 ISO-8859-15"
done
+ for l in da de en es fi fr is it nl no pt sv; do
+ echo "$l ISO-8859-1"
+ done
for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do
echo "$l.ISO_8859-2 ISO-8859-2"
+ done
+ for l in cs hr hu pl sl; do
+ echo "$l ISO-8859-2"
done
for l in la_LN lt_LT; do
echo "$l.ISO_8859-4 ISO-8859-4"
-----------------------
Please reply directly to me because I haven't subscribed to any
gettext mailing list.
Bye,
Andreas