# HG changeset patch # User Kenichi Handa # Date 1213871703 0 # Node ID c506399f3c92403e7248d6d8980af50f4d96f335 # Parent 116dc7c6e345a4d2aa308692f046af5bf4d75e9e Include (x_set_font_backend): Allow spacing characters in the X resource for FontBackend. diff -r 116dc7c6e345 -r c506399f3c92 src/frame.c --- 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 #include +#include #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);