From 8b5fa6f572f86f025f926fcface3c1a7a282f6e5 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 16 Dec 2018 20:39:03 +0100 Subject: [PATCH] tests/test9: Guard locale Musl! --- tests/test9.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test9.in b/tests/test9.in index c38f2e58f..1a0bd79ce 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -102,7 +102,8 @@ try_unbalanced_block 'if false' "wh"'ile' false; "e"nd # BOM checking (see #1518). But only in UTF8 locales. -if string match -qi '*utf-8*' -- (locale) +# (locale guarded because of musl) +if command -sq locale; and string match -qi '*utf-8*' -- (locale) echo \uFEFF"echo bom_test" | source else echo "echo bom_test" | source