changeset 96082:c506399f3c92

Include <ctype.h> (x_set_font_backend): Allow spacing characters in the X resource for FontBackend.
author Kenichi Handa <handa@m17n.org>
date Thu, 19 Jun 2008 10:35:03 +0000
parents 116dc7c6e345
children 06ba89946164
files src/frame.c
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Thu Jun 19 04:59:11 2008 +0000
+++ b/src/frame.c	Thu Jun 19 10:35:03 2008 +0000
@@ -20,6 +20,7 @@
 #include <config.h>
 
 #include <stdio.h>
+#include <ctype.h>
 #include "lisp.h"
 #include "character.h"
 #ifdef HAVE_X_WINDOWS
@@ -3419,12 +3420,16 @@
       new_value = Qnil;
       while (*p0)
 	{
-	  while (*p1 && *p1 != ',') p1++;
+	  while (*p1 && ! isspace (*p1) && *p1 != ',') p1++;
 	  if (p0 < p1)
 	    new_value = Fcons (Fintern (make_string (p0, p1 - p0), Qnil),
 			       new_value);
 	  if (*p1)
-	    p1++;
+	    {
+	      int c;
+
+	      while ((c = *++p1) && isspace (c));
+	    }
 	  p0 = p1;
 	}
       new_value = Fnreverse (new_value);