From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Van Ly Newsgroups: gmane.emacs.bugs Subject: bug#60781: 28.2; column-number-mode counts differently based on character encoding Date: Fri, 13 Jan 2023 13:31:29 GMT Message-ID: <202301131331.30DDVTMh021420@sdf.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20014"; mail-complaints-to="usenet@ciao.gmane.io" To: 60781@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 13 19:05:26 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 1pGOQf-0004uW-SM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 13 Jan 2023 19:05:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGKJo-0001ML-Ox; Fri, 13 Jan 2023 08:42:04 -0500 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 1pGKJm-0001Fq-R1 for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 08:42:02 -0500 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 1pGKJm-0005jB-J2 for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 08:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGKJm-0005rc-F0 for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 08:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Van Ly Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Jan 2023 13:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60781 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.167361731522517 (code B ref -1); Fri, 13 Jan 2023 13:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 13:41:55 +0000 Original-Received: from localhost ([127.0.0.1]:49900 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGKJf-0005r7-DE for submit@debbugs.gnu.org; Fri, 13 Jan 2023 08:41:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:33036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGKJd-0005qu-C4 for submit@debbugs.gnu.org; Fri, 13 Jan 2023 08:41:54 -0500 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 1pGKJO-0000lI-Ez for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 08:41:40 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pGKJL-0005YV-5n for bug-gnu-emacs@gnu.org; Fri, 13 Jan 2023 08:41:38 -0500 Original-Received: from sdf.org (IDENT:van.ly@faeroes.freeshell.org [205.166.94.9]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 30DDVTUU013191 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 13 Jan 2023 13:31:30 GMT Original-Received: (from van.ly@localhost) by sdf.org (8.15.2/8.12.8/Submit) id 30DDVTMh021420; Fri, 13 Jan 2023 13:31:29 GMT Received-SPF: pass client-ip=205.166.94.24; envelope-from=van.ly@sdf.org; helo=mx.sdf.org 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:253305 Archived-At: --=-=-= Content-Type: text/plain Hello, // one right arrow key move of the cursor from the left most position // numbers differently in column-number-mode based on character encoding These steps reproduce the observed unexpected behavior: * emacs -Q /tmp/example.text * move cursor to line two at left most position, then right arrow key once * M-x column-number-mode * the modeline indicator shows (2,2) * move cursor to line nine at left most position, then right arrow key once * the modeline indicator shows (9,1) // for cjk the column number is two // for ascii the column number is one * expected modeline indicator to show (2,1) and (9,1) See attached: bug-report.text, example.text --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=bug-report.text Content-Transfer-Encoding: base64 Content-Description: bug report data CkluIEdOVSBFbWFjcyAyOC4yIChidWlsZCAyLCBhYXJjaDY0LXVua25vd24tbGludXgtZ251LCBH VEsrIFZlcnNpb24gMy4yNC4yNCwgY2Fpcm8gdmVyc2lvbiAxLjE2LjApCiBvZiAyMDIzLTAxLTA5 IGJ1aWx0IG9uIHgyMwpXa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c2V0dGluZyBmb250LXJlbmRlci1zZXR0aW5nIGNhaXJvCm1vdmUt dG9vbGJhciBndGsgeC10b29sa2l0IHggbXVsdGktdHR5IG1ha2UtbmV0d29yay1wcm9jZXNzIGVt YWNzKQoKTWVtb3J5IGluZm9ybWF0aW9uOgooKGNvbnNlcyAxNiA2MDI5OCA3Njc2KQogKHN5bWJv bHMgNDggNzY4NCAxKQogKHN0cmluZ3MgMzIgMjAzODcgMTEyNykKIChzdHJpbmctYnl0ZXMgMSA2 NDc3NTIpCiAodmVjdG9ycyAxNiAxOTQ4MykKICh2ZWN0b3Itc2xvdHMgOCA5NjEwMjUgMTcxMzEy KQogKGZsb2F0cyA4IDI0IDY4KQogKGludGVydmFscyA1NiA0OTggMCkKIChidWZmZXJzIDk5MiAx NCkpCg== --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=example.text Content-Transfer-Encoding: base64 Content-Description: example file to reproduce steps CuihqOekuueVmeS4i++8jOWmguWui+WatOe+vQrjgIrmu4TmtaroqanoqbHigKfoqanovq/jgIvv vJoK44CM5omA6KyC5LiN5raJ55CG6Lev77yMCuS4jeiQveiogOetjOiAhe+8jOS4iuS5n+OAguOA jQoKCgojIDAK --=-=-=--