Index: src/xft-fonts.c
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/src/Attic/xft-fonts.c,v
retrieving revision 1.1.2.3
diff -u -u -r1.1.2.3 xft-fonts.c
--- src/xft-fonts.c 2005/02/04 16:05:38 1.1.2.3
+++ src/xft-fonts.c 2005/02/09 12:51:42
@@ -1003,12 +1003,10 @@
static void
string_list_to_fcobjectset (Lisp_Object list, FcObjectSet *os) {
- Lisp_Object i;
-
- for (i = list; !NILP (i); i = XCDR (i))
+ EXTERNAL_LIST_LOOP_2 (elt, list)
{
- CHECK_STRING (XCAR (i));
- FcObjectSetAdd (os, XSTRING_DATA (XCAR (i)));
+ CHECK_STRING (elt);
+ FcObjectSetAdd (os, XSTRING_DATA (elt));
}
}
BTW this code is not Mule-safe. You need to figure out what encoding
FcObjectSetAdd expects; I would guess:
FcObjectSetAdd (os, NEW_LISP_STRING_TO_EXTERNAL (elt, Qnative));
Same goes for every other place you are passing data from a Lisp string to
an external function.