• Eli Zaretskii's avatar
    Make [:print:] support non-ASCII characters correctly · 6c284c6b
    Eli Zaretskii authored
    * src/regex.c (ISPRINT): Call 'printablep' for multibyte characters.
    (BIT_PRINT): New bit mask.
    (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT.
    * src/character.c (printablep): New function.
    * src/character.h (printablep): Add prototype.
    
    * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior
    of 'print', 'alnum', and 'alphabetic'.
    
    * doc/lispref/searching.texi (Char Classes): Document the new
    behavior of [:print:].
    
    * etc/NEWS: Mention the new behavior of [:print:].
    6c284c6b
regex.c 189 KB