ICU-5948 Set default codepage to ISO-8859-1 for Solaris when 646 is given by the OS.

X-SVN-Rev: 23794
This commit is contained in:
Michael Ow 2008-04-15 22:32:28 +00:00
parent 851c8365ff
commit 4e49d2ab92

View file

@ -1463,6 +1463,13 @@ remapPlatformDependentCodepage(const char *locale, const char *name) {
*/
name = "eucjis";
}
else if (uprv_strcmp(name, "646") == 0) {
/*
* The default codepage given by Solaris is 646 but the C library routines treat it as if it was
* ISO-8859-1 instead of US-ASCII(646).
*/
name = "ISO-8859-1";
}
#elif defined(U_DARWIN)
if (locale == NULL && *name == 0) {
/*