From: "Mattias Engdegård" <mattiase@acm.org>
To: 34492@debbugs.gnu.org
Subject: bug#34492: rx: ASCII-raw byte ranges comprise all of Unicode
Date: Fri, 15 Feb 2019 19:23:56 +0100 [thread overview]
Message-ID: <D2AFF101-DF1D-41DC-B307-47CA3CFFA81B@acm.org> (raw)
`rx' incorrectly considers character ranges between ASCII and raw bytes to cover all codes in-between, which includes all non-ASCII Unicode chars.
This causes (any "\000-\377" ?Å) to be simplified to (any "\000-\377"), which is not at all the same thing: [\000-\377] really means [\000-\177\200-\377] -- the transformation is normally made by the Emacs regexp engine. The two ranges are not contiguous on the character code level.
It's a sleeper bug that was awakened by my fixing bug#33205, so I'm to blame for not checking this.
next reply other threads:[~2019-02-15 18:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-15 18:23 Mattias Engdegård [this message]
[not found] ` <handler.34492.B.15502550523602.ack@debbugs.gnu.org>
2019-02-15 18:29 ` bug#34492: Acknowledgement (rx: ASCII-raw byte ranges comprise all of Unicode) Mattias Engdegård
2019-02-16 7:20 ` Eli Zaretskii
2019-02-16 8:08 ` Mattias Engdegård
2019-02-16 10:14 ` Eli Zaretskii
2019-02-16 11:05 ` Mattias Engdegård
2019-02-16 11:40 ` Eli Zaretskii
2019-02-16 11:46 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D2AFF101-DF1D-41DC-B307-47CA3CFFA81B@acm.org \
--to=mattiase@acm.org \
--cc=34492@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.