From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: sand@blarg.net Newsgroups: gmane.emacs.bugs,gmane.emacs.devel Subject: bug#613: 23.0.60; Unicode display problems Date: Thu, 28 Aug 2008 08:16:10 -0700 Message-ID: <18614.49466.916241.572583@priss.frightenedpiglet.com> References: <87myjv2tc8.fsf@stupidchicken.com> <87zlnrx33y.fsf@physik.rwth-aachen.de> <87ej52vg8r.fsf@physik.rwth-aachen.de> <873al2sd2h.fsf@physik.rwth-aachen.de> <87od3qqvlg.fsf@physik.rwth-aachen.de> <18604.9770.893099.425147@priss.frightenedpiglet.com> <18613.24465.897881.636770@priss.frightenedpiglet.com> Reply-To: sand@blarg.net, 613@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219937301 9956 80.91.229.12 (28 Aug 2008 15:28:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 15:28:21 +0000 (UTC) Cc: 613@emacsbugs.donarmstrong.com, emacs-devel@gnu.org, sand@blarg.net, bronger@physik.rwth-aachen.de To: Kenichi Handa Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 17:29:14 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYjQM-0003Dt-O3 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 17:28:39 +0200 Original-Received: from localhost ([127.0.0.1]:45468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYjPO-0004T6-7r for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 11:27:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYjPK-0004QY-Du for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 11:27:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYjPI-0004PF-V5 for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 11:27:34 -0400 Original-Received: from [199.232.76.173] (port=37628 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYjPI-0004PB-RS for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 11:27:32 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:56707) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYjPI-0004l2-Jc for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 11:27:32 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SFRTQr001460; Thu, 28 Aug 2008 08:27:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7SFP5DP032686; Thu, 28 Aug 2008 08:25:05 -0700 X-Loop: don@donarmstrong.com Resent-From: sand@blarg.net Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 28 Aug 2008 15:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 613 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 613-submit@emacsbugs.donarmstrong.com id=B613.121993650629568 (code B ref 613); Thu, 28 Aug 2008 15:25:04 +0000 Original-Received: (at 613) by emacsbugs.donarmstrong.com; 28 Aug 2008 15:15:06 +0000 Original-Received: from priss.frightenedpiglet.com (v-static-143-234.avvanta.com [206.124.143.234]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with SMTP id m7SFEw1V029317 for <613@emacsbugs.donarmstrong.com>; Thu, 28 Aug 2008 08:15:00 -0700 Original-Received: (qmail 28406 invoked by uid 1000); 28 Aug 2008 15:16:10 -0000 In-Reply-To: X-Mailer: VM 8.0.9 under Emacs 23.0.60.1 (i486-pc-linux-gnu) X-URL: http://home.blarg.net/~sand X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Thu, 28 Aug 2008 11:27:34 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19802 gmane.emacs.devel:103072 Archived-At: Kenichi Handa writes: > In article <18613.24465.897881.636770@priss.frightenedpiglet.com>, sand@blarg.net writes: > > > I'm seeing a complete regression. I rebuilt from CVS HEAD, confirmed > > that your change is in fontset.el, and Emacs picks AR PL ShanHeiSun > > for open single quotes. Putting the script definitions back in fixes > > the problem. I have pasted "good" and "bad" font log blocks to the > > end of this message. Those logs are particularly for Neep Alt, but > > the Misc Fixed ISO10646 fonts have the same problem. > > [...] > > Unsuccessful load of LEFT SINGLE QUOTE with new definition: > > > font for: (8216) > > ftfont-list: -jmk-Neep Alt-*-iso10646-1 > [...] > > -jmk-Neep Alt-normal-normal-normal-*-20-*-c-*-iso10646-1 > [...] > > -jmk-Neep Alt-normal-normal-normal-*-20-*-c-*-iso10646-1 > > Don't you happen to have two sets of "Neep Alt" fonts in the > fontconfig's fontpath; one set supports LEFT SINGLE QUOTE, > and the other doesn't? Neep Alt was originally designed for ISO8859-1 encodings, and my installation still has iso18859-1 fonts that definitely lack LEFT SINGLE QUOTE. However, I constructed additional fonts to support ISO10646-1, by extracting the Misc Fixed glyphs outside of ISO8859-1, and appending them to the Neep Alt font definitions. Those fonts are defined to have the iso10646-1 encoding. When I first noticed the font display problem a couple of months ago, I traced the font code in the debugger and found that Emacs considered the ISO8859-1 fonts to be valid matches for LEFT SINGLE QUOTE and similar codepoints. It would: * load the ISO8859-1 font, rather than the ISO10646-1 font, * notice that LEFT SINGLE QUOTE was missing, and then * start looking in other font families for the codepoint. Adding LEFT SINGLE QUOTE and a couple of others as "symbol" representatives let Emacs filter out the ISO8859-1 fonts earlier in the code path, leaving the ISO10646-1 fonts for Emacs to use. The Misc Fixed fonts had the same problem, as they also included ISO8859-1 and ISO10646-1 encodings, and this solution worked for them as well. One approach that we might consider is to change the C code, so that any ISO8859-1 font is immediately skipped when the codepoint is 256 or greater. Or we could change the font loading code to try multiple encodings within a family before dropping back to other families. Derek