From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Re: char-displayable-p issue Date: Wed, 22 Oct 2003 09:00:43 -0700 (PDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20031022160043.68916.qmail@web60304.mail.yahoo.com> References: <200310220551.OAA07920@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1066838801 14271 80.91.224.253 (22 Oct 2003 16:06:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2003 16:06:41 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 22 18:06:37 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACLVN-00039k-00 for ; Wed, 22 Oct 2003 18:06:37 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACLVN-0006jp-00 for ; Wed, 22 Oct 2003 18:06:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACLUd-0000GJ-OS for emacs-devel@quimby.gnus.org; Wed, 22 Oct 2003 12:05:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACLR3-0007Jm-Q0 for emacs-devel@gnu.org; Wed, 22 Oct 2003 12:02:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACLQ1-0006Wp-D6 for emacs-devel@gnu.org; Wed, 22 Oct 2003 12:01:36 -0400 Original-Received: from [216.109.118.115] (helo=web60304.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1ACLPg-0006FI-8b for emacs-devel@gnu.org; Wed, 22 Oct 2003 12:00:44 -0400 Original-Received: from [12.91.2.180] by web60304.mail.yahoo.com via HTTP; Wed, 22 Oct 2003 09:00:43 PDT Original-To: Kenichi Handa In-Reply-To: <200310220551.OAA07920@etlken.m17n.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17346 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17346 --- Kenichi Handa wrote: > In article <20031021232240.14826.qmail@web60306.mail.yahoo.com>, > Michael Mauger writes: > > > 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. > > Ummm, I didn't know that such a server exists. How about > '-*-iso8859-1'? Doest it match all iso8859-1 fonts? If so, > instead of just changing "-*-" to "-*-*-*-*-*-*-*-*-*-*-*-", > generating the most compact font-pattern (i.e. no succeeding > wildcards) will solve the problem without making Windows > version slow. > > Could you try that? > > Even if that doesn't work, your patch is not enough. I > think we must change the length of "-*-..-*-" according to > the form of car of font-pattern ("FOUNDRY-FAMILY", > "*FAMILY", or "FOUNDRY*") I tried '-*-iso8859-1' and it also failed. The problem appears to be in the Windows implementation of x-list-fonts (w32_list_fonts in src/w32fns.c). The wildcarding is obviously not working as intended. (length (x-list-fonts "-*-*-*-*-*-*-*-*-*-*-*-*-iso8859-1")) = 584 (length (x-list-fonts "-*-iso8859-1")) = 0 I'll take a look at w32_list_fonts but I am very rusty on Windows internals. -- Michael __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com