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#17758: 24.3; The line isn't wrapped during printing if it contains non ascii chars Date: Sat, 29 May 2021 10:01:43 +0300 Message-ID: <83fsy66n1k.fsf@gnu.org> References: <877g4nm9c1.fsf@leo-kub-port.i-did-not-set--mail-host-address--so-tickle-me> <87v972rtfc.fsf@gnus.org> <83h7im6o42.fsf@gnu.org> <87r1hqqbx9.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: handa@gnu.org, 17758@debbugs.gnu.org, tobias.bora@gmail.com To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 29 09:02:22 2021 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 1lmszF-0000mt-Va for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 09:02:21 +0200 Original-Received: from localhost ([::1]:57526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmszE-0003Vy-0r for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 May 2021 03:02:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44696) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lmsyy-0003TN-6V for bug-gnu-emacs@gnu.org; Sat, 29 May 2021 03:02:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lmsyw-0004Ul-JJ for bug-gnu-emacs@gnu.org; Sat, 29 May 2021 03:02:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lmsyw-0004q0-Fu for bug-gnu-emacs@gnu.org; Sat, 29 May 2021 03:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 May 2021 07:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17758 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 17758-submit@debbugs.gnu.org id=B17758.162227170518574 (code B ref 17758); Sat, 29 May 2021 07:02:02 +0000 Original-Received: (at 17758) by debbugs.gnu.org; 29 May 2021 07:01:45 +0000 Original-Received: from localhost ([127.0.0.1]:55885 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmsyf-0004pW-AT for submit@debbugs.gnu.org; Sat, 29 May 2021 03:01:45 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51002) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lmsyd-0004pK-B8 for 17758@debbugs.gnu.org; Sat, 29 May 2021 03:01:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36476) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lmsyY-0004FX-0V; Sat, 29 May 2021 03:01:38 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3113 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 1lmsyX-00044l-EG; Sat, 29 May 2021 03:01:37 -0400 In-Reply-To: <87r1hqqbx9.fsf@gnus.org> (message from Lars Ingebrigtsen on Sat, 29 May 2021 08:41:38 +0200) 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" Xref: news.gmane.io gmane.emacs.bugs:207509 Archived-At: > From: Lars Ingebrigtsen > Cc: Kenichi Handa , tobias.bora@gmail.com, > 17758@debbugs.gnu.org > Date: Sat, 29 May 2021 08:41:38 +0200 > > Eli Zaretskii writes: > > > I'm not sure I understand the fix, can you explain it? > > I'm not sure I understand it either. :-/ > > (string-match "^[\000-ÿ]+" "éfoo") > => 0 > > (string-match "^[\000-\377]+" "éfoo") > => nil > > Which surprised me. Maybe because an octal escape causes us to match only raw bytes? (string-match "^[\000-\377]+" (encode-coding-string "éfoo" 'latin-1)) => 0 Is that documented somewhere?