]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fold: check if multi-byte spaces are treated as blank
authorCollin Funk <collin.funk1@gmail.com>
Fri, 5 Sep 2025 02:30:00 +0000 (19:30 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Fri, 5 Sep 2025 02:48:37 +0000 (19:48 -0700)
commit24fb014092ba8d831c25cd8757a6a738927bb743
tree8f87a5a5a5dfdfbb93867f95503cc93c01ce3b91
parent07eedce2d3c267b42267d9d5f9005528165fa540
tests: fold: check if multi-byte spaces are treated as blank

This avoids a test failure on FreeBSD 14, MacOS 15, and musl.
Fix suggested by Pádraig Brady in:
<https://bugs.gnu.org/79301#32>.
* tests/fold/fold-spaces.sh (isblank): New function. Only run the tests
if the character is treated as blank.
Fixes https://bugs.gnu.org/79301
tests/fold/fold-spaces.sh