diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-10-24 03:26:33 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-10-24 03:26:33 +0000 |
commit | 4d54786a9b982820570e616c1b5669d5b169fd00 (patch) | |
tree | 9a52705c4e5feb159e86daf72efb21fc35eb9475 /locale/programs | |
parent | d0f1175e9440779ee112ab10c089a24736144384 (diff) | |
download | glibc-4d54786a9b982820570e616c1b5669d5b169fd00.tar glibc-4d54786a9b982820570e616c1b5669d5b169fd00.tar.gz glibc-4d54786a9b982820570e616c1b5669d5b169fd00.tar.bz2 glibc-4d54786a9b982820570e616c1b5669d5b169fd00.zip |
Update.
2003-10-23 Jakub Jelinek <jakub@redhat.com>
* locale/programs/locale.c (show_info): Fix printing word values on
64-bit big-endian architectures.
2003-10-19 Bruno Haible <bruno@clisp.org>
* intl/hash-string.c (hash_string): Zero-extend each char from the
string; the old code did a sign-extend on some platforms.
Diffstat (limited to 'locale/programs')
-rw-r--r-- | locale/programs/locale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/programs/locale.c b/locale/programs/locale.c index ec37d4871c..f1a534cad6 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: |