From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#31588: 26.1; format counts some Unicode characters as two Date: Sun, 03 Jun 2018 12:29:20 -0400 Message-ID: <87muwb96lb.fsf@gmail.com> References: <87in7cfti2.fsf@gmail.com> <83lgc89r6b.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1528043293 11603 195.159.176.226 (3 Jun 2018 16:28:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 3 Jun 2018 16:28:13 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 31588@debbugs.gnu.org, jpa4q@virginia.edu To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 03 18:28:08 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPVrS-0002sl-OR for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 18:28:06 +0200 Original-Received: from localhost ([::1]:35897 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPVtZ-0006FM-J1 for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Jun 2018 12:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42226) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fPVtQ-0006CG-Le for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 12:30:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fPVtK-0004wL-CN for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 12:30:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52564) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fPVtK-0004w1-9L for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 12:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fPVtJ-0001mj-SI for bug-gnu-emacs@gnu.org; Sun, 03 Jun 2018 12:30:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Jun 2018 16:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31588 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 31588-submit@debbugs.gnu.org id=B31588.15280433706793 (code B ref 31588); Sun, 03 Jun 2018 16:30:01 +0000 Original-Received: (at 31588) by debbugs.gnu.org; 3 Jun 2018 16:29:30 +0000 Original-Received: from localhost ([127.0.0.1]:60461 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPVso-0001lQ-Eo for submit@debbugs.gnu.org; Sun, 03 Jun 2018 12:29:30 -0400 Original-Received: from mail-it0-f49.google.com ([209.85.214.49]:53971) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fPVsm-0001l3-AL; Sun, 03 Jun 2018 12:29:28 -0400 Original-Received: by mail-it0-f49.google.com with SMTP id a195-v6so7154985itd.3; Sun, 03 Jun 2018 09:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=ZmZYn44X35ByStWlVmVsZVtau9hsivvjIkUZAddaC68=; b=AaTdssEecsXGLvmy5eom5GbZWx8eVCdyXYPW7LGmhV7QEDUKTd4BTpcou5cuWqs+FP ohMV3KLgpOqNvAsA0In8GVD3y/1RQ56ZPqrkI97drCmWaRnLLqO4AmwKCV7WX+RbmECK c+kUAQCLrIxyjej7GsPzG9917DLWVRTvwgGh/crdm4X3jRqNbuYUXtB0V2HEAWS7wr2u rq4UxYggsqhNCx5G6h4MIfEtx1eDzW/HBKRBqZ1gbb2li93Q/J2amZG4sa7JC41lJq9k +xrzX+zRG/pFIfB+vzw6YSr5X6vcBH4FNrZ0gw7VWPQYsd+orpOP8TC9Hp/oYcfLzkRy sqZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=ZmZYn44X35ByStWlVmVsZVtau9hsivvjIkUZAddaC68=; b=C/SRYx12lBE9C7xDtUV2Uv78kBuXUczDt7gwKa+H6pUvlr6uG44NBQDVrucT1DlLm8 lUaPB3VM61UEdi9BOT9/s4IaIl6dHOrGk1lur/XqKBIl12hEPZjTqpGeVFltxCweY7cy mgwTtkxORmXH0wpZvGmEEkDpHwjo1ChEMMOZYUiYjLta8nFu799eiNoQs3g/pzxxxX6u DzKASGMYalwaOU+oWL4IxIeWN5zoZEBeqQaD++Xt+K41lFLhp0/VZIo/QG65iT9KpeO7 M+lVxR92Ke/JSI+UrXPv13A5jwK5btniPrGWvwu6JEhVNdKsN9d0slgtySkbNPBLL/1E Oupg== X-Gm-Message-State: APt69E0U84Ja4DbRInOeHSANoj/LToomkojf8J7ghaSHuJSoHbI03H0Q k4XqemHEbYDzXOMLI8vcUAWaHg== X-Google-Smtp-Source: ADUXVKLLE4jPsWLE+azUsAjrn5rQepCkcyx9GwWfcSxfTLART6vjVN4KzwMx1JiPN3Pis8Sdtqp+kA== X-Received: by 2002:a24:2111:: with SMTP id e17-v6mr11573505ita.114.1528043362730; Sun, 03 Jun 2018 09:29:22 -0700 (PDT) Original-Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id q11-v6sm5329183ita.15.2018.06.03.09.29.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 03 Jun 2018 09:29:21 -0700 (PDT) In-Reply-To: <83lgc89r6b.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 May 2018 09:37:32 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:146913 Archived-At: close 31588 quit Eli Zaretskii writes: >> From: Noam Postavsky >> Date: Thu, 24 May 2018 20:50:45 -0400 >> Cc: 31588@debbugs.gnu.org >>=20 >> > As far as I can tell, something is off about the styled_format and how >> > it counts characters- I suspect something about counting >> > multibyte characters, but it's a little beyond me. >>=20 >> I think it's intended, =E2=9E=96 and =E2=9D=8C are wide characters: >>=20 >> (mapcar #'char-width '(?=E2=9E=96 ?=E2=9D=8C ?=E2=96=B6 ?=E2=9C=9A ?= =E2=96=B7 ?=E2=97=BC)) >> ;=3D> (2 2 1 1 1 1) > > Yes, that's the reason. > >> Although in my current font the width seems to be more like 1.8 or >> something. > > Unfortunately, the actual width depends on the font, and what's more, > sometimes varies significantly between different fonts. Maybe we > should have a variant of char-width that actually looks at the font > (of course, such a variant will need a window or frame as one of its > arguments). Well, I don't know if format could do anything useful with a non-integer width anyway. > But with the current state of our support for wide characters, this is > not a bug. Okay, I'm closing this report.