[PATCH] Set LC_CTYPE in zdump/zic
Jakub Jelinek
jakub@redhat.com
Mon Oct 23 04:32:00 GMT 2000
Hi!
zdump and zic set LC_MESSAGES but not LC_CTYPE. Either we should do this, or
setlocale(LC_ALL, "");.
2000-10-23 Jakub Jelinek <jakub@redhat.com>
* timezone/zdump.c (main): setlocale LC_CTYPE as well as
LC_MESSAGES.
* timezone/zic.c (main): Likewise.
--- libc/timezone/zdump.c.jj Tue Jan 19 15:36:30 1999
+++ libc/timezone/zdump.c Mon Oct 23 13:31:55 2000
@@ -155,6 +155,7 @@ char * argv[];
INITIALIZE(cuttime);
#if HAVE_GETTEXT - 0
+ (void) setlocale(LC_CTYPE, "");
(void) setlocale(LC_MESSAGES, "");
#ifdef TZ_DOMAINDIR
(void) bindtextdomain(TZ_DOMAIN, TZ_DOMAINDIR);
--- libc/timezone/zic.c.jj Sat Aug 12 21:04:16 2000
+++ libc/timezone/zic.c Mon Oct 23 13:32:11 2000
@@ -465,6 +465,7 @@ char * argv[];
(void) umask(umask(S_IWGRP | S_IWOTH) | (S_IWGRP | S_IWOTH));
#endif /* defined unix */
#if HAVE_GETTEXT - 0
+ (void) setlocale(LC_CTYPE, "");
(void) setlocale(LC_MESSAGES, "");
#ifdef TZ_DOMAINDIR
(void) bindtextdomain(TZ_DOMAIN, TZ_DOMAINDIR);
Jakub
More information about the Libc-hacker
mailing list