emacs/test/src
Mattias Engdegård d3e2c88041 Fix ASCII-only conversion logic (bug#40407)
To sidestep conversion altogether when EOL conversion applies, we must
either be encoding a string without NL, or decoding without CR.

* src/coding.c (string_ascii_p): Revert to a pure predicate.
(code_convert_string): Fix logic.  Don't use uninitialised
ascii_p (removed).  Use memchr to detect CR or LF in string when needed.
* test/src/coding-tests.el (coding-nocopy-ascii):
Update tests to include encodings with explicit EOL conversions.
2020-04-09 12:50:35 +02:00
..
regex-resources * test/src/regex-resources/PTESTS: Convert to UTF-8. 2016-12-12 23:17:19 -08:00
alloc-tests.el Fix crash when sending Gnus message (Bug#39207) 2020-01-22 23:44:34 -08:00
buffer-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
callint-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
callproc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
casefiddle-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
charset-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
chartab-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
cmds-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
coding-tests.el Fix ASCII-only conversion logic (bug#40407) 2020-04-09 12:50:35 +02:00
data-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
decompress-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
doc-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
editfns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
emacs-module-tests.el Port the 'module/async-pipe' test to MS-Windows 2020-03-27 16:19:20 +03:00
eval-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fileio-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
floatfns-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
fns-tests.el Fix sxhash-equal on bytecodes, markers, etc. 2020-01-07 11:29:42 -08:00
font-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
inotify-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
json-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
keyboard-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
keymap-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lcms-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
lread-tests.el Remove lread tests for a feature that was deleted 2020-02-14 11:10:55 -08:00
marker-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
minibuf-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
print-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
process-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
regex-emacs-tests.el Revert "Signal an error for the regexp "[:alnum:]"" 2020-02-27 18:58:05 +01:00
syntax-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
textprop-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
thread-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
timefns-tests.el Fix rounding errors in time conversion 2020-03-03 10:20:32 -08:00
undo-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00
xml-tests.el Update copyright year to 2020 2020-01-01 00:59:52 +00:00