summaryrefslogtreecommitdiffstats
path: root/source/l/gtk+/gtk+-1.2.10-fontwarning.patch
diff options
context:
space:
mode:
Diffstat (limited to 'source/l/gtk+/gtk+-1.2.10-fontwarning.patch')
-rw-r--r--source/l/gtk+/gtk+-1.2.10-fontwarning.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/source/l/gtk+/gtk+-1.2.10-fontwarning.patch b/source/l/gtk+/gtk+-1.2.10-fontwarning.patch
new file mode 100644
index 000000000..bf540bb05
--- /dev/null
+++ b/source/l/gtk+/gtk+-1.2.10-fontwarning.patch
@@ -0,0 +1,24 @@
+--- gtk+-1.2.10/gdk/gdkfont.c.fontwarning Fri Apr 12 17:33:55 2002
++++ gtk+-1.2.10/gdk/gdkfont.c Fri Apr 12 17:36:52 2002
+@@ -27,6 +27,7 @@
+ #include <X11/Xlib.h>
+ #include <X11/Xos.h>
+ #include <langinfo.h>
++#include <locale.h>
+ #include "gdk.h"
+ #include "gdkprivate.h"
+
+@@ -187,9 +188,11 @@
+ if (g_strcasecmp (codeset, "utf-8") != 0 &&
+ g_strcasecmp (codeset, "utf8") != 0)
+ {
+- g_warning ("Missing charsets in FontSet creation\n");
++ g_printerr ("The font \"%s\" does not support all the required character sets for the current locale \"%s\"\n",
++ fontset_name, setlocale (LC_ALL, NULL));
+ for (i=0;i<missing_charset_count;i++)
+- g_warning (" %s\n", missing_charset_list[i]);
++ g_printerr (" (Missing character set \"%s\")\n",
++ missing_charset_list[i]);
+ }
+
+ XFreeStringList (missing_charset_list);