ICU-6054 Remap ambiguous EUC alias, and add sun_eu_greek alias.

X-SVN-Rev: 23006
This commit is contained in:
George Rhoten 2007-12-04 16:36:03 +00:00
parent 9521f5bc4c
commit 1d1a2181e5
2 changed files with 12 additions and 1 deletions

View File

@ -1426,7 +1426,17 @@ remapPlatformDependentCodepage(const char *locale, const char *name) {
name = "eucjis";
}
#elif defined(U_LINUX)
if (uprv_strcmp(name, "eucjp") == 0) {
if (locale != NULL && uprv_strcmp(name, "euc") == 0) {
/* Linux underspecifies the "EUC" name. */
if (uprv_strcmp(locale, "korean") == 0) {
name = "EUC-KR";
}
else if (uprv_strcmp(locale, "japanese") == 0) {
/* See comment below about eucJP */
name = "eucjis";
}
}
else if (uprv_strcmp(name, "eucjp") == 0) {
/*
ibm-1350 is the best match, but unavailable.
ibm-954 is mostly a superset of ibm-1350.

View File

@ -372,6 +372,7 @@ ibm-9005_X110-2007 { UTR22* }
iso-ir-126 { IANA WINDOWS }
ISO_8859-7:1987 { IANA* WINDOWS }
windows-28597 { WINDOWS* }
sun_eu_greek # For Solaris
# ISO Greek (w/o euro update)
# JDK 1.5 has these aliases.