diff options
author | Roland McGrath <roland@gnu.org> | 2002-10-11 07:22:18 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-10-11 07:22:18 +0000 |
commit | 679e4c434f755644cc2093c9940ac58d0c2b51cf (patch) | |
tree | 9b854f1c5d1bb85bdb6698b6051e77dfd877147e /locale/duplocale.c | |
parent | 704bb2fd8e613322b308ed53c98b3d0d1bd98526 (diff) | |
download | glibc-679e4c434f755644cc2093c9940ac58d0c2b51cf.zip glibc-679e4c434f755644cc2093c9940ac58d0c2b51cf.tar.gz glibc-679e4c434f755644cc2093c9940ac58d0c2b51cf.tar.bz2 |
* locale/newlocale.c (__newlocale): If setting all categories to "C",
just return &_nl_C_locobj instead of copying it.
* locale/freelocale.c (__freelocale): Check for &_nl_C_locobj.
* locale/duplocale.c (__duplocale): Likewise.
2002-10-07 Roland McGrath <roland@frob.com>
* config.h.in (HAVE_I386_SET_GDT): New #undef.
* sysdeps/mach/configure.in: Define it with new check for i386_set_gdt.
* sysdeps/mach/configure: Regenerated.
2002-10-06 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h (INLINE_SYSCALL):
Add all necessary register outputs for syscall-clobbered registers.
2002-10-02 David Mosberger <davidm@hpl.hp.com>
* sysdeps/ia64/bzero.S: Rewritten by Sverre Jarp to tune for
Itanium 2 (and Itanium).
Fix unwind directives and make it fit in 80 columns.
* sysdeps/ia64/memset.S: Ditto.
* sysdeps/ia64/memcpy.S: Ditto.
Move jump table to .rodata section.
2002-10-03 Roland McGrath <roland@frob.com>
* sysdeps/mach/hurd/i386/init-first.c (_hurd_stack_setup): Add
clobbers to asm.
Diffstat (limited to 'locale/duplocale.c')
-rw-r--r-- | locale/duplocale.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/locale/duplocale.c b/locale/duplocale.c index 2fa29d1..77dfc01 100644 --- a/locale/duplocale.c +++ b/locale/duplocale.c @@ -33,6 +33,10 @@ __libc_lock_define (extern , __libc_setlocale_lock attribute_hidden) __locale_t __duplocale (__locale_t dataset) { + /* This static object is returned for newlocale (LC_ALL_MASK, "C"). */ + if (dataset == &_nl_C_locobj) + return dataset; + __locale_t result; int cnt; size_t names_len = 0; |