From ba737b94fd1c6a4292f942ab448e3770a0b8ff4c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 14 Mar 2002 20:48:50 +0000 Subject: Update. 2002-03-14 Jakub Jelinek * locale/broken_cur_max.c (__ctype_get_mb_cur_max): Use nl_langinfo. * locale/Versions (_nl_current_LC_COLLATE, _nl_current_LC_CTYPE): Remove. 2002-03-14 Jakub Jelinek * sysdeps/generic/mp_clz_tab.c: New file. * sysdeps/i386/mp_clz_tab.c: New file. * sysdeps/hppa/mp_clz_tab.c: New file. * sysdeps/powerpc/mp_clz_tab.c: New file. * stdlib/Makefile (aux): Revert last patch. * math/Makefile (gmp-objs): Likewise. 2002-03-13 Paul Eggert * time/strftime.c: Comment fixes for references to obsolescent standards, In most cases the simplest fix is to remove the confusing comments. Cross-referencing all the standards properly is a bit of a pain, and it should be enough to put that info in the documentation as I did in my recent time.texi patch. 2002-03-13 Paul Eggert * manual/time.texi (Formatting Calendar Time): ISO C99 also specifies the E and O modifiers. %P is a GNU extension, and is not in ISO C99. Mention that %r is equivalent to %I:%M:%S %p in the POSIX locale. %T is also in ISO C99. The RFC 822 example is not valid in arbitrary locales. Reword the POSIX.2 wording slightly, to make it a bit clearer that POSIX.2 formats are also supported by later POSIX versions. If a format was introduced in ISO C99 it is also required by POSIX.1-2001. --- locale/Versions | 1 - locale/broken_cur_max.c | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'locale') diff --git a/locale/Versions b/locale/Versions index 6bce99f5c5..094a392fac 100644 --- a/locale/Versions +++ b/locale/Versions @@ -50,6 +50,5 @@ libc { # global variables __collate_element_hash; __collate_element_strings; __collate_symbol_classes; __collate_symbol_hash; __collate_symbol_strings; - _nl_current_LC_COLLATE; _nl_current_LC_CTYPE; } } diff --git a/locale/broken_cur_max.c b/locale/broken_cur_max.c index c997bec163..bfdec32f4f 100644 --- a/locale/broken_cur_max.c +++ b/locale/broken_cur_max.c @@ -44,7 +44,8 @@ size_t __ctype_get_mb_cur_max (void) { - size_t correct_value = _NL_CURRENT_WORD (LC_CTYPE, _NL_CTYPE_MB_CUR_MAX); + union locale_data_value u; - return ((size_t []) { 1, 1, 1, 2, 2, 3, 4 })[correct_value]; + u.string = nl_langinfo (_NL_CTYPE_MB_CUR_MAX); + return ((size_t []) { 1, 1, 1, 2, 2, 3, 4 })[u.word]; } -- cgit 1.4.1