Under some systems (notably, BSDI), there is no LC_MESSAGES category in

Under some systems (notably, BSDI), there is no LC_MESSAGES category in
locale.h. In this case it is good guess to relay on the value of LC_ALL
(in fact, LC_CTYPE will be more precise).
This commit is contained in:
Timur I. Bakeyev 1999-01-20 18:35:53 +00:00
parent 6205bbbf65
commit 5ce6bea660
8 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -1,3 +1,9 @@
Wed Jan 20 21:07:45 1999 Timur Bakeyev <mc@bat.ru>
* gtk/gtkrc.c (gtk_rc_init): There are some systems, that lacks of
LC_MESSAGES in locale.h. As a last resort for such systems, set locale
according to LC_ALL.
Wed Jan 20 13:06:51 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch] (clear_[focus_]area): Instead of drawing

View File

@ -380,7 +380,11 @@ gtk_rc_init (void)
gchar *locale_suffixes[3];
gint n_locale_suffixes = 0;
gint i, j;
#ifdef HAVE_LC_MESSAGES
char *locale = setlocale (LC_MESSAGES, NULL);
#else
char *locale = setlocale (LC_ALL, NULL);
#endif
guint length;
char *p;