diff options
author | Eli Zaretskii <eliz@gnu.org> | 2020-04-09 12:20:24 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2020-04-09 12:20:24 +0300 |
commit | 20eb4247cdc2eeada43c3de8abf9c577be38c98f (patch) | |
tree | 677cbf525a8028236e54fb01daaa141495af93dd /lisp/emacs-lisp/lisp-mode.el | |
parent | faf996dc6e963a8dd74e9e794ded0467dd78ea18 (diff) | |
download | emacs-20eb4247cdc2eeada43c3de8abf9c577be38c98f.tar.gz emacs-20eb4247cdc2eeada43c3de8abf9c577be38c98f.tar.bz2 emacs-20eb4247cdc2eeada43c3de8abf9c577be38c98f.zip |
Fix decoding of ASCII strings with embedded CR characters
* src/coding.c (string_ascii_p): Return a negative value if an
all-ASCII string STR includes the CR character, otherwise a
positive value.
(code_convert_string): If the string is ASCII, but includes CR
characters, use the fast path only if EOL doesn't need to be
decoded. (Bug#40519)
* test/src/coding-tests.el (coding-nocopy-ascii): Add more tests
for bug#40519.
Diffstat (limited to 'lisp/emacs-lisp/lisp-mode.el')
0 files changed, 0 insertions, 0 deletions