• Mattias Engdegård's avatar
    Prevent over-eager rx character range condensation · 478bbf7c
    Mattias Engdegård authored
    `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] (Bug#34492).
    
    * lisp/emacs-lisp/rx.el (rx-any-condense-range): Split ranges going
    from ASCII to raw bytes.
    * test/lisp/emacs-lisp/rx-tests.el (rx-char-any-raw-byte): Add test case.
    * etc/NEWS: Mention the overall change (Bug#33205).
    478bbf7c
NEWS 62.1 KB