From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: combining chars issue Date: Thu, 26 Jun 2008 17:07:11 +0900 Message-ID: References: <20080619143057.GA85105@orion.lan> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1214467710 18898 80.91.229.12 (26 Jun 2008 08:08:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2008 08:08:30 +0000 (UTC) Cc: emacs-devel@gnu.org To: Emanuele Giaquinta Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 26 10:09:15 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KBmWy-0004Aw-LO for ged-emacs-devel@m.gmane.org; Thu, 26 Jun 2008 10:08:36 +0200 Original-Received: from localhost ([127.0.0.1]:56431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBmW8-0005NO-Sx for ged-emacs-devel@m.gmane.org; Thu, 26 Jun 2008 04:07:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBmVp-0005AJ-2A for emacs-devel@gnu.org; Thu, 26 Jun 2008 04:07:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBmVm-00057k-3a for emacs-devel@gnu.org; Thu, 26 Jun 2008 04:07:24 -0400 Original-Received: from [199.232.76.173] (port=60532 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBmVl-00057V-U6 for emacs-devel@gnu.org; Thu, 26 Jun 2008 04:07:21 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:10724) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KBmVl-0007Ys-HY for emacs-devel@gnu.org; Thu, 26 Jun 2008 04:07:21 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBmVj-00005s-Rc for emacs-devel@gnu.org; Thu, 26 Jun 2008 04:07:20 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m5Q87C3d022815; Thu, 26 Jun 2008 17:07:12 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m5Q87Cen005438; Thu, 26 Jun 2008 17:07:12 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m5Q87BXN022078; Thu, 26 Jun 2008 17:07:11 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KBmVb-0001n5-EZ; Thu, 26 Jun 2008 17:07:11 +0900 In-reply-to: <20080619143057.GA85105@orion.lan> (message from Emanuele Giaquinta on Thu, 19 Jun 2008 16:30:57 +0200) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 9 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99958 Archived-At: Sorry for the late response on this matter. In article <20080619143057.GA85105@orion.lan>, Emanuele Giaquinta writes: > with latest cvs combining chars are not handled properly in emacs -Q -nw. > It seems emacs does not write the combining chars at all on stdout, so > they are not displayed. > Attached is an utf-8 encoded file that should exhibit the problem and a > typescript of emacs $file. As you can see from the typescript, emacs > writes U+39b but not U+300. However, what-cursor-position reports U+300 > in the cell next to the U+39b one, so it seems only a display issue. I've just installed a fix. > The problem seems to be in term.c:append_glyph, which does not append > any glyph when it->pixel_width == 0. > Does the attached patch make sense? No. The sequence of base character and the following combining characters must be composed to one grapheme cluster to provide a reasonable cursor movement. The problem was that auto-composition-mode didn't handle the case of terminal display. --- Kenichi Handa handa@ni.aist.go.jp