From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#4839: 23.1.50; *Buffer List* -- incorrect handling of multibyte characters? Date: Mon, 02 Nov 2009 16:40:19 +0100 Message-ID: References: <87eiojy8tp.fsf@gmail.com> <20091102152117.GA14203@headley> Reply-To: Andreas Schwab , 4839@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1257176938 23533 80.91.229.12 (2 Nov 2009 15:48:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Nov 2009 15:48:58 +0000 (UTC) Cc: 4839@emacsbugs.donarmstrong.com To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 02 16:48:48 2009 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 1N4z95-0003Dn-0w for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 16:48:39 +0100 Original-Received: from localhost ([127.0.0.1]:59155 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4z94-0002lt-EF for geb-bug-gnu-emacs@m.gmane.org; Mon, 02 Nov 2009 10:48:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4z7r-0001bz-7K for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 10:47:23 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4z7m-0001Wd-L0 for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 10:47:22 -0500 Original-Received: from [199.232.76.173] (port=53706 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4z7m-0001WI-CT for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 10:47:18 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50367) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N4z7l-0007Ue-P4 for bug-gnu-emacs@gnu.org; Mon, 02 Nov 2009 10:47:18 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2FlFgM000550; Mon, 2 Nov 2009 07:47:15 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA2Fj4xR032688; Mon, 2 Nov 2009 07:45:04 -0800 Resent-Date: Mon, 2 Nov 2009 07:45:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Andreas Schwab Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 02 Nov 2009 15:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4839 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4839-submit@emacsbugs.donarmstrong.com id=B4839.125717642532397 (code B ref 4839); Mon, 02 Nov 2009 15:45:04 +0000 Original-Received: (at 4839) by emacsbugs.donarmstrong.com; 2 Nov 2009 15:40:25 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA2FeMD0032387 for <4839@emacsbugs.donarmstrong.com>; Mon, 2 Nov 2009 07:40:24 -0800 Original-Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nA2FeLml006443; Mon, 2 Nov 2009 10:40:22 -0500 Original-Received: from hase.home (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nA2FeKN2027521; Mon, 2 Nov 2009 10:40:20 -0500 X-Yow: -- I can do ANYTHING ... I can even ... SHOPLIFT!! In-Reply-To: <20091102152117.GA14203@headley> =?UTF-8?Q?("=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec"'s?= message of "Mon, 2 Nov 2009 16:21:17 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 02 Nov 2009 10:47:22 -0500 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:32373 Archived-At: =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > On Mon, Nov 02, 2009 at 04:08:16AM -0500, Glenn Morris wrote: >> stepnem@gmail.com wrote: >>=20 >> > Here is a part of my *Buffer List*: >> > >> > desktop-menu.el 20228 Emacs-Lisp ~/.emacs.d/load/desk= top-menu.el >> [...] >> > =E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org 11681 Org = ~/Documents/ling/cn/=E9=9D=A2=E7=84=A1=E4=BA=BA=E8=89=B2.org >> > xhc.org 1833 Org ~/Documents/ling/cn/= xhc.org >> > =E8=AF=8D=E5=85=B8.org 2940 Org ~/Docu= ments/ling/cn/=E8=AF=8D=E5=85=B8.org >> [...] >> > All the `Org' lines, with exception of `xhc.org', are misaligned. >>=20 >> When I copy and paste your buffer names, the issue seems to be that >> `string-width' returns an incorrect value (eg 13 when the buffer name >> actually seems to occupy 12). Although some of these characters seem >> to have a non-integer width on my system, so I don't see that it is >> possible to get this right. But it still looks more wrong than it >> should be (off by > 1 character). > > Yes -- when I view your quotation from my mail above in Mutt, it's > aligned correctly, but as soon as I cut & paste it into an Emacs buffer, > it's misaligned again, the exact same way as displayed in the *Buffer Lis= t*... If the double width characters are not exactly twice as wide as the single width characters there is not much that can be done about that. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."