From 4d54786a9b982820570e616c1b5669d5b169fd00 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 24 Oct 2003 03:26:33 +0000 Subject: Update. 2003-10-23 Jakub Jelinek * locale/programs/locale.c (show_info): Fix printing word values on 64-bit big-endian architectures. 2003-10-19 Bruno Haible * intl/hash-string.c (hash_string): Zero-extend each char from the string; the old code did a sign-extend on some platforms. --- ChangeLog | 10 ++++++++++ locale/programs/locale.c | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ebd2765..4a512a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2003-10-23 Jakub Jelinek + + * locale/programs/locale.c (show_info): Fix printing word values on + 64-bit big-endian architectures. + +2003-10-19 Bruno Haible + + * intl/hash-string.c (hash_string): Zero-extend each char from the + string; the old code did a sign-extend on some platforms. + 2003-10-22 Steven Munroe * sysdeps/powerpc/powerpc32/Makefile (+cflags, asm-CPPFLAGS): Don't diff --git a/locale/programs/locale.c b/locale/programs/locale.c index ec37d48..f1a534c 100644 --- a/locale/programs/locale.c +++ b/locale/programs/locale.c @@ -893,12 +893,12 @@ show_info (const char *name) break; case word: { - unsigned int val = - (unsigned int) (unsigned long int) nl_langinfo (item->item_id); + union { unsigned int word; char *string; } val; + val.string = nl_langinfo (item->item_id); if (show_keyword_name) printf ("%s=", item->name); - printf ("%d\n", val); + printf ("%d\n", val.word); } break; case wstring: -- cgit v1.1