This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Set LC_CTYPE in zdump/zic


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]