[Top][All Lists]

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

Re: char-displayable-p issue

From: Michael Mauger
Subject: Re: char-displayable-p issue
Date: Tue, 21 Oct 2003 16:22:40 -0700 (PDT)

I can't reproduce that bug. When I turned on ruler-mode, I see both characters in the ruler head. Isn't it a bug specific to Windows?
Yes, it seems the problem is specific to Windows. Work well on my GNU/Linux box.

I'm not sure that this is just a Windows issue -- it may affect some X implementations as well.  The problem seems to be that the wildcard pattern generated in `char-displayable-p' is not matching multiple hyphen separated portions of the font name.  That is, '-*-*-iso8859-1' doesn't match any fonts while '-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1' does.

Here's a patch that corrects the problem (and should work reliably on all X implementations) but which runs very slowly on Windows. 

Please review...

Index: emacs/lisp/international/mule-util.el
RCS file: /cvsroot/emacs/emacs/lisp/international/mule-util.el,v
retrieving revision 1.53
diff -b -u -r1.53 mule-util.el
--- emacs/lisp/international/mule-util.el       1 Sep 2003 18:45:35 -00001.53
+++ emacs/lisp/international/mule-util.el       21 Oct 2003 22:47:42 -0000
@@ -386,7 +386,7 @@
                 (or (stringp font-pattern)
                     (setq font-pattern (concat "-"
                                                (or (car font-pattern) "*")
-                                               "-*-"
+                                               "-*-*-*-*-*-*-*-*-*-*-*-"
                                                (cdr font-pattern))))
                 (x-list-fonts font-pattern 'default (selected-frame) 1)))))

-- Michael

Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
reply via email to

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