locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Jun 2011 18:05:58 +0000 (20:05 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Jun 2011 18:17:07 +0000 (20:17 +0200)
* m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
'none'.

ChangeLog
m4/locale-zh.m4

index 571df81..7667cea 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-06-13  Bruno Haible  <bruno@clisp.org>
+
+       locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
+       * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
+       'none'.
+
 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
 
        ftoastr: use strtof only if HAVE_STRTOF
index e03f91f..5e06398 100644 (file)
@@ -1,4 +1,4 @@
-# locale-zh.m4 serial 8
+# locale-zh.m4 serial 9
 dnl Copyright (C) 2003, 2005-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -93,6 +93,12 @@ changequote([,])dnl
             gt_cv_locale_zh_CN=none
           fi
           ;;
+        solaris2.8)
+          # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
+          # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
+          # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
+          gt_cv_locale_zh_CN=none
+          ;;
         *)
           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the