From 4e49d2ab925571ce57bc8076db583575246b9dfb Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Tue, 15 Apr 2008 22:32:28 +0000 Subject: [PATCH] ICU-5948 Set default codepage to ISO-8859-1 for Solaris when 646 is given by the OS. X-SVN-Rev: 23794 --- icu4c/source/common/putil.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/icu4c/source/common/putil.c b/icu4c/source/common/putil.c index d4d109be940..baf5afe6429 100644 --- a/icu4c/source/common/putil.c +++ b/icu4c/source/common/putil.c @@ -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) { /*