From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yN7cHJ1CRWQtQQEASxT56A (envelope-from ) for ; Sun, 23 Apr 2023 16:37:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id UEHBG51CRWQkZAEAG6o9tA (envelope-from ) for ; Sun, 23 Apr 2023 16:37:17 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 18B5A2622 for ; Sun, 23 Apr 2023 16:37:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pqapD-0006Hz-1t; Sun, 23 Apr 2023 10:36:23 -0400 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 1pqapB-0006Hp-HU for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 10:36:21 -0400 Received: from netyu.xyz ([152.44.41.246] helo=mail.netyu.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pqap9-0004kd-Vu for emacs-orgmode@gnu.org; Sun, 23 Apr 2023 10:36:21 -0400 Received: from fw.net.yu.netyu.xyz ( [222.248.4.98]) by netyu.xyz (OpenSMTPD) with ESMTPSA id 02ac3a96 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 23 Apr 2023 14:36:17 +0000 (UTC) References: <87ildmuavp.fsf@localhost> <87y1misv5l.fsf@localhost> User-agent: mu4e 1.9.22; emacs 30.0.50 To: Ihor Radchenko Cc: Axel Kielhorn , emacs-orgmode@gnu.org Subject: Re: [DRAFT PATCH v2] Decouple LANG= and testing (was: Test failure due to LANG) Date: Sun, 23 Apr 2023 22:30:26 +0800 In-reply-to: <87y1misv5l.fsf@localhost> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=152.44.41.246; envelope-from=ruijie@netyu.xyz; helo=mail.netyu.xyz X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Ruijie Yu From: Ruijie Yu via "General discussions about Org-mode." Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682260637; a=rsa-sha256; cv=none; b=KgRx+p4OmeoAU0rqz8Ka9vnP1OfVk6traqzOlKgZmx+oVJ+3NSrESoWZPPH4Fb7QjDgGzT RDnNhej56rMW/4Kwd9Ffk8S19rk7WN0rhkEqn38tFVjri7IUqiZczhpG2s6832tbrSV4hj wZ41ewl8eIUlUykbBX2dqvH1xJ6coRn+vGwu60lxPPjTY1db+Yvi/QQpOahccqe4LSZ2ba Rp4RXgO5zZ7TTSIT+qN/GXoHiZcYJHBBdPx6AoiO0YW85MRhqN/vQuZJsAkCVDiJAXR9nj ILJaNg5+rHPGH4hEYtDsvqNWqvPR2uJwVbvZ4tP4sQG1ru/572ovI0Fy/1URQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682260637; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Ektq7N3wH10npB3O6ChEgdT1yk6P9558omnRPtt3EK4=; b=E01zrXvXKqylbOpCTgXMjyUrykx5X43mzOHjFXkN8TsmQssz3NqwYFnzpi5t7/ZEqzZT4i cmj3HFqyd/6DFmwoBWe+/V99UOKXlrlYKyG+DEDUgCKvRSu7n8/sh/tOdBYSfIVkVmNL8m M2vu2/vjXWsAXx+2u/2rGhIgo5kkYLbvhBEo8m+YhZqGiEHgnsms0Dt1ZmwY45WqryskKv N6fUX1GSAI7HtJQ+c9yQmCg7414UOgXKYaYv/dF8qoBZfv58VNaRvIOWLVZ6vV8bHQk21c i/GI4oSL3yGmOmvSF4rjSEaOrIu9NsGJW9TyonyaazvkSq/X5kAX+qxJQmhGdg== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.51 X-Spam-Score: -3.51 X-Migadu-Queue-Id: 18B5A2622 X-TUID: o0ZvektAl74W Ihor Radchenko writes: > Ruijie Yu writes: > >>>> (format "%-5.5s |" "1234=E2=80=A6") >>>> >>>> returns different results for different locales, causing >>>> `test-org-colview/columns-width' to break. >>> >>> What are these different results? >> >> In CJK locales such as zh_CN and ja_JA, the ellipsis character is >> truncated, and replaced by a space. >> >> I reported to Emacs devs a few minutes ago because I wanted to >> understand how `format' decide the ellipsis is a two-unit wide character >> in CJK locales. I also wasn't sure if that is an Emacs bug or an Org >> one, and their response would help a lot. > > For future reference: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D63029 >From my understanding of Eli's response, org-colview is at fault here, by calling `length' instead of `string-width' in `org-columns-add-ellipses'. Changing this function call might be all it needs to fix the colview test failure? --=20 Best, RY [Please note that this mail might go to spam due to some misconfiguration in my mail server -- still investigating.]