From: drepper Date: Sat, 18 Aug 2001 02:21:02 +0000 (+0000) Subject: (__duplocale): Also initialize the special __ctype_* elements. X-Git-Tag: glibc-2-2-5~947 X-Git-Url: http://git.csclub.uwaterloo.ca/?p=kopensolaris-gnu%2Fglibc.git;a=commitdiff_plain;h=a4329cdc49bd7a8463168f937f8675570a4f579d (__duplocale): Also initialize the special __ctype_* elements. --- diff --git a/locale/duplocale.c b/locale/duplocale.c index 14eeddd627..2fe23fc6ad 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);