From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#63029: [BUG?] format inconsistency in deciding string widths on different locales Date: Sun, 23 Apr 2023 17:32:43 +0300 Message-ID: <838reizn1w.fsf@gnu.org> References: <83bkjeznoh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15598"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63029@debbugs.gnu.org To: Ruijie Yu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 23 16:33:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pqamF-0003r9-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 23 Apr 2023 16:33:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqam1-0005yY-Dz; Sun, 23 Apr 2023 10:33:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqalz-0005yN-98 for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2023 10:33:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pqaly-00044y-FV for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2023 10:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pqalx-000204-Vi for bug-gnu-emacs@gnu.org; Sun, 23 Apr 2023 10:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Apr 2023 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63029 X-GNU-PR-Package: emacs Original-Received: via spool by 63029-submit@debbugs.gnu.org id=B63029.16822603527649 (code B ref 63029); Sun, 23 Apr 2023 14:33:01 +0000 Original-Received: (at 63029) by debbugs.gnu.org; 23 Apr 2023 14:32:32 +0000 Original-Received: from localhost ([127.0.0.1]:46564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqalT-0001zI-LI for submit@debbugs.gnu.org; Sun, 23 Apr 2023 10:32:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pqalR-0001z5-B7 for 63029@debbugs.gnu.org; Sun, 23 Apr 2023 10:32:30 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqalL-0003u9-Nk; Sun, 23 Apr 2023 10:32:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=njC9KoGduQBOosJ/LUrQvE6YeY4y9EW79HnfFOsqqiw=; b=leyrP5Aqcdyz 2hdCnTD4338Q5AAZYpgbnkryMO3j16K1tIYvZmTf9lrxIJ9BQnlYc27V/hmkTc+3FOblzMifZHaRk 5wPQ9XNNPJppXLZ7CN9K327zIOiTFJCQ8eelIpD1PbNyGGjw6GOAO7Te1WkGlO9PLOn2NZ2Md+mOE LWXjnolC3OvukAe66ArAtu2hbL1w23M8V1u/Z46YI0ZrtBcKW1/sguI1uqtZltWRYTj1xrvpwnJBf QzO+iAnvhCK8SEHSPl1VFxQBAtoC+cHwouPVR90KcqxtnJx5dX8NZEiKjd7kbNnuvK1hCq/sU8QSe YF/JQks2VXdA3kokCxavtA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqalK-0002Ca-Uo; Sun, 23 Apr 2023 10:32:23 -0400 In-Reply-To: (message from Ruijie Yu on Sun, 23 Apr 2023 22:23:16 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260519 Archived-At: > From: Ruijie Yu > Cc: 63029@debbugs.gnu.org > Date: Sun, 23 Apr 2023 22:23:16 +0800 > > > Eli Zaretskii writes: > > > See also bug#54138 and > > https://lists.gnu.org/archive/html/emacs-devel/2022-02/msg00917.html. > > Thanks for the link. I have found the answer in your response there. > > >> And how do we, the elisp users, get this information? > > > > I don't understand this question. Please elaborate: what information > > do you want to get, besides the width of the characters (which is > > accessible via char-width-table). > > You mentioning `char-width-table' here and `char-width' on the linked > thread precisely answered my question. I was looking for `char-width' > without knowing its name. Thanks. OK, so can we close this issue? Btw, the recommended method of computing the width of a string is via string-pixel-width.