diff options
author | Pádraig Brady <P@draigBrady.com> | 2022-02-23 17:27:15 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2022-02-24 13:58:06 +0000 |
commit | 677fb3e4aba37bc5c6c7a13908e1f5d0f0ded743 (patch) | |
tree | 99dcc88402e5f61f82cd11a9c34c53e19583b95a /tests | |
parent | 97e9778296ead515e77a64942b84f88dcf36a176 (diff) | |
download | coreutils-677fb3e4aba37bc5c6c7a13908e1f5d0f0ded743.tar.gz |
tests: improve compat with macOS
* tests/misc/wc-nbsp.sh: Only the en_US.iso8859-1 form
is accepted on macOS 10.15.7 at least. GNU/Linux also
accepts ISO-8859-1 (and canonicalizes the charmap to this).
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/misc/wc-nbsp.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc/wc-nbsp.sh b/tests/misc/wc-nbsp.sh index 6721b2b48..7b2658f6a 100755 --- a/tests/misc/wc-nbsp.sh +++ b/tests/misc/wc-nbsp.sh @@ -31,8 +31,8 @@ check_word_sep() { fi } -export LC_ALL=en_US.ISO-8859-1 -if test "$(locale charmap 2>/dev/null)" = ISO-8859-1; then +export LC_ALL=en_US.iso8859-1 # only lowercase form works on macOS 10.15.7 +if test "$(locale charmap 2>/dev/null | sed 's/iso/ISO-/')" = ISO-8859-1; then check_word_sep '\xA0' fi |