summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-02-13 17:48:01 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-02-13 17:48:01 +0000
commit6b838a22d1e55ed50d079f7a7eca8afdd3714ddc (patch)
treea91e5ffee40c9f8affcf0e9dfd2d8005faf333b9 /gtk/gtkmain.c
parent294e8eb7bbb62620afb2d5a76408f4671018deb0 (diff)
downloadgdk-pixbuf-6b838a22d1e55ed50d079f7a7eca8afdd3714ddc.tar.gz
g_warning() if setting the local fails, like gdk_set_locale() did.
Wed Feb 13 12:41:44 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkmain.c (gtk_init_check): g_warning() if setting the local fails, like gdk_set_locale() did. * gdk/x11/gdkselection-x11.c (gdk_text_property_to_utf8_list): Don't free local_list if local_count == 0. (#71241, reported by Kevin Vandersloot.) * gdk/x11/gdkselection-x11.c (gdk_text_property_to_text_list): Clean up list == NULL handling and failure.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 37eb587fc..a6d5c1975 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -458,7 +458,10 @@ gtk_init_check (int *argc,
#endif
if (do_setlocale)
- setlocale (LC_ALL, "");
+ {
+ if (!setlocale (LC_ALL, ""))
+ g_warning ("Locale not supported by C library.\n\tUsing the fallback 'C' locale.");
+ }
/* Initialize "gdk". We pass along the 'argc' and 'argv'
* parameters as they contain information that GDK uses