]> git.ipfire.org Git - thirdparty/coreutils.git/commit
fmt: fix invalid multi-byte splitting on macOS
authorPádraig Brady <P@draigBrady.com>
Wed, 23 Feb 2022 17:50:46 +0000 (17:50 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 24 Feb 2022 13:58:06 +0000 (13:58 +0000)
commit6dc702928ec84b9d511396e756184403fd96cc6c
treef1814e946aa8f44d172229f1dc6be0a72d64fa35
parent677fb3e4aba37bc5c6c7a13908e1f5d0f0ded743
fmt: fix invalid multi-byte splitting on macOS

On macOS, isspace(0x85) returns true,
which results in splitting within multi-byte characters.

* src/fmt.c (get_line): s/isspace/c_isspace/.
* tests/fmt/non-space.sh: Add a new test.
* tests/local.mk: Reference new test.
* NEWS: Mention the fix.
Addresses https://bugs.gnu.org/54124
NEWS
src/fmt.c
tests/fmt/non-space.sh [new file with mode: 0755]
tests/local.mk