diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-03-14 20:48:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-03-14 20:48:50 +0000 |
commit | ba737b94fd1c6a4292f942ab448e3770a0b8ff4c (patch) | |
tree | 1fe14a7a3422f6e9ff3c42e305f06b7acbfbbbe8 /locale/broken_cur_max.c | |
parent | 1897bc3f9385320236b7f4d3b8439099e52747c8 (diff) | |
download | glibc-ba737b94fd1c6a4292f942ab448e3770a0b8ff4c.tar.gz glibc-ba737b94fd1c6a4292f942ab448e3770a0b8ff4c.tar.xz glibc-ba737b94fd1c6a4292f942ab448e3770a0b8ff4c.zip |
Update.
2002-03-14 Jakub Jelinek <jakub@redhat.com> * 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 <jakub@redhat.com> * 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 <eggert@twinsun.com> * 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 <eggert@twinsun.com> * 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.
Diffstat (limited to 'locale/broken_cur_max.c')
-rw-r--r-- | locale/broken_cur_max.c | 5 |
1 files changed, 3 insertions, 2 deletions
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]; } |