diff src/objects-x.c @ 3164:c9423e7289d2

[xemacs-hg @ 2005-12-23 12:00:44 by stephent] Fix crash getting truename of Xft fonts. <878xuc2fdo.fsf@tleepslib.sk.tsukuba.ac.jp>
author stephent
date Fri, 23 Dec 2005 12:00:45 +0000
parents f94f72c6ceb0
children 8f3f6e3dfad9
line wrap: on
line diff
--- a/src/objects-x.c	Fri Dec 23 11:42:35 2005 +0000
+++ b/src/objects-x.c	Fri Dec 23 12:00:45 2005 +0000
@@ -807,7 +807,8 @@
       FcChar8 *res = FcNameUnparse (FONT_INSTANCE_X_XFTFONT (f)->pattern);
       if (res)
 	{
-	  FONT_INSTANCE_TRUENAME (f) = make_string (res, strlen (res));
+	  FONT_INSTANCE_TRUENAME (f) =
+	    build_ext_string (res, Qxft_font_name_encoding);
 	  free (res);
 	  return FONT_INSTANCE_TRUENAME (f);
 	}