summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-07-31 11:45:41 +0200
committerBruno Haible <bruno@clisp.org>2010-07-31 11:45:41 +0200
commitba62d45bdf79356e0899aea78f682fd2665df2e2 (patch)
tree5b0c5850456c258258074094ec207c4977bb26ac /lib
parentd614713a565235b36338496fe3b67a7932a8c78a (diff)
downloadgnulib-ba62d45bdf79356e0899aea78f682fd2665df2e2.tar.gz
duplocale: Work around AIX 7.1 bug.
Diffstat (limited to 'lib')
-rw-r--r--lib/duplocale.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/duplocale.c b/lib/duplocale.c
index 6f06d1fae2..3f33030109 100644
--- a/lib/duplocale.c
+++ b/lib/duplocale.c
@@ -32,7 +32,9 @@ locale_t
rpl_duplocale (locale_t locale)
{
/* Work around crash in the duplocale function in glibc < 2.12.
- See <http://sourceware.org/bugzilla/show_bug.cgi?id=10969>. */
+ See <http://sourceware.org/bugzilla/show_bug.cgi?id=10969>.
+ Also, on AIX 7.1, duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0 with
+ errno set to EINVAL. */
if (locale == LC_GLOBAL_LOCALE)
{
/* Create a copy of the locale by fetching the name of each locale