>>>> "Stephen" == Stephen J Turnbull
<stephen(a)xemacs.org> writes:
Stephen> Raymond Toy writes:
>
> I just updated my Ubunut 12 system to Ubuntu 14 and xemacs is now
> crashing consistently. I tried updating xemacs to the latest code and
> the crash is still happening.
>
> Here is the recipe, running src/xemacs -vanilla. In the *scratch*
> buffer enter
>
> (let ((face 'default)
> (default-font "Courier-10:lang=en"))
> (set-specifier
> (face-font face)
> (cons '(x)
> (fc-name-unparse
> (fc-font-match (selected-device)
> (fc-name-parse default-font))))))
Stephen> Where is this happening in actual use? If it's your own code, you
can
Stephen> work around with fc-name-parse-harder. If it's in XEmacs, we
probably
Stephen> should make that change there.
It's in my own code. (I got this from some other post here on how to
set up fonts with xft.)
Unfortunately, changing the test to
(let ((face 'default)
(default-font "Courier-10:lang=en"))
(set-specifier
(face-font face)
(cons '(x)
(fc-name-unparse
(fc-font-match (selected-device)
(fc-name-parse-harder default-font))))))
Still crashes because fc-name-unparse apparently still leaves the
charset stuff. But using
(let ((face 'default)
(default-font "Courier-10:lang=en"))
(set-specifier
(face-font face)
(cons '(x)
(fc-name-parse-harder
(fc-name-unparse
(fc-font-match (selected-device)
(fc-name-parse default-font)))))))
doesn't crash, but I now get an error
Invalid argument: Invalid specifier locale, x
It's been so long since I worked with specifiers that I don't remember
how to do that anymore.
Stephen> Specifically, it's known and there is code in lisp/fontconfig.el to
Stephen> deal with this, see defvar fc-name-parse-known-problem-attributes and
Stephen> defun fc-name-parse-harder. I don't understand the crash, as there
is
Stephen> also code in src/font-mgr.c:Ffc_name_parse to detect NULL returns and
Stephen> signal. I wonder if your XEmacs is somehow out of date? I believe
Stephen> these changes were installed 2013-09-15 or soon after (ChangeLog date
Stephen> is 2013-09-10).
Yes, I saw Jerry's comments about fc-name-parse-harder.
The latest tests were done with a recent mercurial version, but I did
an hg pull -u yesterday and rebuilt, just to be sure.
I'll poke around a bit more.
--
Ray
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta