From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.bugs Subject: bug#5275: Malayalam file names not rendered correctly (conjuncts are not formed) in message window and buffer title Date: Fri, 15 Jan 2010 14:29:13 +0900 Message-ID: References: <3f2beab60912290330y7f950cc1v76b8e54bf787f2b7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1263534582 15320 80.91.229.12 (15 Jan 2010 05:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Jan 2010 05:49:42 +0000 (UTC) Cc: 5275@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 15 06:49:34 2010 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 1NVf3q-0002md-KU for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jan 2010 06:49:30 +0100 Original-Received: from localhost ([127.0.0.1]:38488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVf3r-0002QK-08 for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Jan 2010 00:49:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NVf3l-0002PU-U8 for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 00:49:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NVf3g-0002L2-FW for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 00:49:24 -0500 Original-Received: from [199.232.76.173] (port=58833 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NVf3g-0002Ku-Cn for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 00:49:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56468) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NVf3f-0002hY-Ar for bug-gnu-emacs@gnu.org; Fri, 15 Jan 2010 00:49:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NVel1-0004Vf-IG; Fri, 15 Jan 2010 00:30:03 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Kenichi Handa Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Jan 2010 05:30:03 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5275 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5275-submit@debbugs.gnu.org id=B5275.126353336217297 (code B ref 5275); Fri, 15 Jan 2010 05:30:03 +0000 Original-Received: (at 5275) by debbugs.gnu.org; 15 Jan 2010 05:29:22 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVekL-0004Uw-Qs for submit@debbugs.gnu.org; Fri, 15 Jan 2010 00:29:22 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NVekJ-0004Uq-V3 for 5275@debbugs.gnu.org; Fri, 15 Jan 2010 00:29:21 -0500 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id o0F5TEWF000523; Fri, 15 Jan 2010 14:29:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id o0F5TE3x020152; Fri, 15 Jan 2010 14:29:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id o0F5TDps001200; Fri, 15 Jan 2010 14:29:14 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1NVekD-0002JP-KX; Fri, 15 Jan 2010 14:29:13 +0900 In-Reply-To: (message from YAMAMOTO Mitsuharu on Fri, 15 Jan 2010 11:54:31 +0900) X-Spam-Score: -2.5 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -2.5 (--) Resent-Date: Fri, 15 Jan 2010 00:30:03 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org 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:34349 Archived-At: In article , YAMAMOTO Mitsuharu writes: > Unfortunately, I couldn't reproduce it on GNU/Linux. But the > following examples spontaneously fail with the X11 build on Mac OS X > 10.5. > (switch-to-buffer-other-window (string ?e 769)) > (switch-to-buffer-other-window (string ?e 769 ?e 769)) > (switch-to-buffer-other-window (string ?e 769 ?e 769 ?e 769)) > (switch-to-buffer-other-window (string ?e 769 ?e 769 ?e 769 ?e 769)) > (switch-to-buffer-other-window (string ?e 769 ?e 769 ?e 769 ?e 769 ?e 769)) Thank you for them. I now find what is wrong and committed a temporary fix. > I suspect the problematic case is that `charpos + field_width' in > reseat_to_string exceeds the length of the given string. The value of > `field_width' is 12 by default when displaying buffer names. Actually, the bug was that I ignored it->string_nchars in composition handling. By the way, in the current code, field_width and precision are not handled correctly. The comments in xdisp.c say that they are "number of characters" and the current code treats them as such, but the original intention is "number of columns occupied by characters". It seems that fixing it is not a trivial work. --- Kenichi Handa handa@m17n.org