tests: avoid false failure due to mismatched isblank()
commit3dc86576481092b03a4b8632a175630af495a26c
authorPádraig Brady <P@draigBrady.com>
Tue, 26 Mar 2024 15:02:17 +0000 (26 15:02 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 26 Mar 2024 16:53:09 +0000 (26 16:53 +0000)
tree52f05cb01fca10eae89550e26a59245485d95c85
parent30039cb23a2cbdc2ef92e7c474bd9d9ae404ffe0
tests: avoid false failure due to mismatched isblank()

There is a mismatch between isblank() used by tr and c32isblank() now
used by uniq on Solaris 11 OpenIndiana. isblank() was seen to return
true for non breaking space, while c32isblank() returned false.
Interestingly on Solaris, non breaking space is considered a blank
character, and isblank() and c32isblank() honor this in all locales.

* tests/uniq/uniq.pl: Adjust the blank check to use join(1) rather than
tr(1), as join uses the same blank determination routines as uniq(1).
tests/uniq/uniq.pl