From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33205: 26.1; unibyte/multibyte missing in rx.el Date: Sat, 08 Dec 2018 10:56:40 +0200 Message-ID: <835zw45rcn.fsf@gnu.org> References: <83pnvrjqec.fsf@gnu.org> <160755c702f9b4dfc80be8b5664eb3919804bb84.camel@acm.org> <83wopyi00z.fsf@gnu.org> <83pnvjcvwc.fsf@gnu.org> <834lcsd7qu.fsf@gnu.org> <5203F729-8090-4453-80CC-1249DB064631@acm.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1544259370 1807 195.159.176.226 (8 Dec 2018 08:56:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 8 Dec 2018 08:56:10 +0000 (UTC) Cc: 33205@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 08 09:56:06 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 1gVYP5-0000Hu-RK for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 09:56:04 +0100 Original-Received: from localhost ([::1]:50019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVYRB-0003L4-RC for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Dec 2018 03:58:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVYR5-0003CR-Rs for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:58:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVYR2-00023L-Fd for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:58:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33348) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gVYR2-00022Q-Ad for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:58:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gVYR2-0003Fk-8q for bug-gnu-emacs@gnu.org; Sat, 08 Dec 2018 03:58:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Dec 2018 08:58:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33205 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33205-submit@debbugs.gnu.org id=B33205.154425943012333 (code B ref 33205); Sat, 08 Dec 2018 08:58:04 +0000 Original-Received: (at 33205) by debbugs.gnu.org; 8 Dec 2018 08:57:10 +0000 Original-Received: from localhost ([127.0.0.1]:37606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVYQ9-0003Cq-GQ for submit@debbugs.gnu.org; Sat, 08 Dec 2018 03:57:09 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47237) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gVYQ8-0003Cd-BB for 33205@debbugs.gnu.org; Sat, 08 Dec 2018 03:57:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gVYPz-0001by-TI for 33205@debbugs.gnu.org; Sat, 08 Dec 2018 03:57:02 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44446) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gVYPz-0001bu-Pg; Sat, 08 Dec 2018 03:56:59 -0500 Original-Received: from [176.228.60.248] (port=2753 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gVYPz-00033H-CE; Sat, 08 Dec 2018 03:56:59 -0500 In-reply-to: <5203F729-8090-4453-80CC-1249DB064631@acm.org> (message from Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= on Mon, 19 Nov 2018 21:07:39 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:153205 Archived-At: > From: Mattias EngdegÄrd > Date: Mon, 19 Nov 2018 21:07:39 +0100 > Cc: 33205@debbugs.gnu.org > > I tried using rx to match raw bytes. (rx (any (?\200 . ?\377))) doesn't work, since that is translated to the corresponding Unicode range; (any (#x3fff80 . #x3fffff)) must be used instead. Maybe that is evident, or would it merit a mention in the doc string? > > The alternative formulation (rx (any "\200-\377")) doesn't work either, and this seems to be a bug. Looking at rx-check-any-string, a second bug is revealed: the code uses the regex ".-." to pick out ranges, which means that \n cannot be a range endpoint. > > Perhaps you want me to open a new bug for the above? I'm attaching a patch all the same, but you may prefer doing it differently. Thanks. For a patch of this size, we would need a copyright assignment from you. Would you like to start the legal paperwork for that?