From 89f29a0742e0dc8fa764a2dbb09c06e25909dac9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 18 Aug 2001 02:46:36 +0000 Subject: Update. * locale/duplocale.c (__duplocale): Also initialize the special __ctype_* elements. --- locale/duplocale.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'locale') diff --git a/locale/duplocale.c b/locale/duplocale.c index 14eeddd..2fe23fc 100644 --- a/locale/duplocale.c +++ b/locale/duplocale.c @@ -1,5 +1,5 @@ /* Duplicate handle for selection of locales. - Copyright (C) 1997, 2000 Free Software Foundation, Inc. + Copyright (C) 1997, 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1997. @@ -51,6 +51,11 @@ __duplocale (__locale_t dataset) } } + /* Update the special members. */ + result->__ctype_b = dataset->__ctype_b; + result->__ctype_tolower = dataset->__ctype_tolower; + result->__ctype_toupper = dataset->__ctype_toupper; + /* It's done. */ __libc_lock_unlock (__libc_setlocale_lock); -- cgit v1.1