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 | |
parent | 1897bc3f9385320236b7f4d3b8439099e52747c8 (diff) | |
download | glibc-ba737b94fd1c6a4292f942ab448e3770a0b8ff4c.tar glibc-ba737b94fd1c6a4292f942ab448e3770a0b8ff4c.tar.gz glibc-ba737b94fd1c6a4292f942ab448e3770a0b8ff4c.tar.bz2 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')
-rw-r--r-- | locale/Versions | 1 | ||||
-rw-r--r-- | locale/broken_cur_max.c | 5 |
2 files changed, 3 insertions, 3 deletions
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]; } |