diff options
| author | Pádraig Brady <P@draigBrady.com> | 2021-08-07 18:47:57 +0100 |
|---|---|---|
| committer | Pádraig Brady <P@draigBrady.com> | 2021-08-08 00:09:38 +0100 |
| commit | a574283c7ab6f9b506a324f83e28fe9a6064eddd (patch) | |
| tree | a28df38f7943027aba6d02ccac2a5ab74dff3344 /scripts/git-hooks | |
| parent | maint: update .gitignore (diff) | |
| download | coreutils-a574283c7ab6f9b506a324f83e28fe9a6064eddd.tar.gz coreutils-a574283c7ab6f9b506a324f83e28fe9a6064eddd.zip | |
cat: with -E fix handling of \r\n spanning buffers
We must delay handling when \r is the last character
of the buffer being processed, as the next character
may or may not be \n.
* src/cat.c (pending_cr): A new global to record whether
the last character processed (in -E mode) is '\r'.
(cat): Honor pending_cr when processing the start of the buffer.
(main): Honor pending_cr if no more files to process.
* tests/misc/cat-E.sh: Add test cases.
Fixes https://bugs.gnu.org/49925
Diffstat (limited to 'scripts/git-hooks')
0 files changed, 0 insertions, 0 deletions
