APPROVE COMMIT
NOTE; this patch has been committed.
Olle didn’t get back to me, but the change seems sane enough.
Ar an deichiú lá de mí Eanair, scríobh Aidan Kehoe:
Thank you Olle, I can reproduce the crash without problems with that recipe.
Here’s a patch that addresses it for me; please check if it works for you.
diff -r 8418d1ad4944 src/ChangeLog
--- a/src/ChangeLog Sun Nov 02 00:34:13 2008 +0900
+++ b/src/ChangeLog Sat Jan 10 22:50:17 2009 +0000
@@ -1,3 +1,8 @@
+2009-01-10 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * objects-msw.c (mswindows_font_spec_matches_charset_stage_2):
+ Accept msprinter as well as mswindows devices here.
+
2008-11-01 Stephen J. Turnbull <stephen(a)xemacs.org>
* regex.c (re_search_2): Fix at_dot by changing charpos to bytepos.
diff -r 8418d1ad4944 src/objects-msw.c
--- a/src/objects-msw.c Sun Nov 02 00:34:13 2008 +0900
+++ b/src/objects-msw.c Sat Jan 10 22:50:17 2009 +0000
@@ -2064,8 +2064,21 @@
else
{
HDC hdc = CreateCompatibleDC (NULL);
- Lisp_Object font_list = DEVICE_MSWINDOWS_FONTLIST (d);
- Lisp_Object truename;
+ Lisp_Object font_list = Qnil, truename;
+
+ if (DEVICE_TYPE_P (d, mswindows))
+ {
+ font_list = DEVICE_MSWINDOWS_FONTLIST (d);
+ }
+ else if (DEVICE_TYPE_P (d, msprinter))
+ {
+ font_list = DEVICE_MSPRINTER_FONTLIST (d);
+ }
+ else
+ {
+ assert(0);
+ }
+
HFONT hfont = create_hfont_from_font_spec (the_nonreloc, hdc, Qnil,
font_list,
ERROR_ME_DEBUG_WARN,
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghe, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-patches