[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `set-fontset-font' and ascii characters

From: Oliver Scholz
Subject: Re: `set-fontset-font' and ascii characters
Date: Sun, 04 May 2003 00:24:23 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux)

Kenichi Handa <address@hidden> writes:

> In article <address@hidden>, Oliver Scholz <address@hidden> writes:
>> O.k. Here's the new patch.
> I'll check that patch next week and install it if I don't
> find any problems.  Thank you.

I found a bug. Emacs crashes, if you evaluated the following code with
my patch applied:

  (set-face-font 'default "fontset-default")
  (set-fontset-font "fontset-default"
                    '("helvetica" . "iso8859-1")))

The critical fault seems to take place in `set_lface_from_font_name'
in xfaces.c (called from `Finternal_set_lisp_face_attribute'):

  if (fontset >= 0)
    font_name = SDATA (fontset_ascii (fontset));

But fontset_ascii doesn't return a Lisp-String in this case.

Where is the proper place to fix this?

Oliver Scholz               15 Floréal an 211 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]