changeset 90721:83fbeead74c9

Fix previous change.
author Kenichi Handa <handa@m17n.org>
date Thu, 07 Dec 2006 12:24:59 +0000
parents f54d6fd16189
children f154c6f1efc1
files src/xfns.c
diffstat 1 files changed, 14 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Thu Dec 07 11:59:00 2006 +0000
+++ b/src/xfns.c	Thu Dec 07 12:24:59 2006 +0000
@@ -2177,14 +2177,24 @@
 
 #ifdef DEBUG_XIC_FONTSET
 static void
-print_fontset_result (xfs, name)
+print_fontset_result (xfs, name, missing_list, missing_count)
      XFontSet xfs;
      char *name;
+     char **missing_list;
+     int missing_count;
 {
   if (xfs)
     fprintf (stderr, "XIC Fontset created: %s\n", name);
   else
-    fprintf (stderr, "XIC Fontset failed: %s\n", name);
+    {
+      fprintf (stderr, "XIC Fontset failed: %s\n", name);
+      while (missing_count-- > 0)
+	{
+	  fprintf (stderr, "  missing: %s\n", *missing_list);
+	  missing_list++;
+	}
+    }
+
 }
 #endif
 
@@ -2226,7 +2236,7 @@
       xfs = XCreateFontSet (FRAME_X_DISPLAY (f), buf,
 			    &missing_list, &missing_count, &def_string);
 #ifdef DEBUG_XIC_FONTSET
-      print_fontset_result (xfs, buf);
+      print_fontset_result (xfs, buf, missing_list, missing_count);
 #endif
       if (missing_list)
 	XFreeStringList (missing_list);
@@ -2260,7 +2270,7 @@
 	      xfs = XCreateFontSet (FRAME_X_DISPLAY (f), buf,
 				    &missing_list, &missing_count, &def_string);
 #ifdef DEBUG_XIC_FONTSET
-	      print_fontset_result (xfs, buf);
+	      print_fontset_result (xfs, buf, missing_list, missing_count);
 #endif
 	      if (missing_list)
 		XFreeStringList (missing_list);