aboutsummaryrefslogtreecommitdiff
path: root/locale/duplocale.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-18 02:46:36 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-18 02:46:36 +0000
commit89f29a0742e0dc8fa764a2dbb09c06e25909dac9 (patch)
tree119775c91d97fb2e9bd7833b251ac39d30577507 /locale/duplocale.c
parent0f4b99a643216c5ffea5bc3b2b1ae1d6940ae550 (diff)
downloadglibc-89f29a0742e0dc8fa764a2dbb09c06e25909dac9.zip
glibc-89f29a0742e0dc8fa764a2dbb09c06e25909dac9.tar.gz
glibc-89f29a0742e0dc8fa764a2dbb09c06e25909dac9.tar.bz2
Update.
* locale/duplocale.c (__duplocale): Also initialize the special __ctype_* elements.
Diffstat (limited to 'locale/duplocale.c')
-rw-r--r--locale/duplocale.c7
1 files changed, 6 insertions, 1 deletions
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 <drepper@cygnus.com>, 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);