From 6cc64fc9e383a138d8a668501d78871e1cbef93a Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 2 Nov 2014 00:14:16 -0700 Subject: BOM test should only run in UTF-8 locales --- tests/test9.in | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/test9.in b/tests/test9.in index 3adc1ca4..b7ca78d8 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -114,7 +114,12 @@ try_unbalanced_block 'if false' "wh"'ile' false; "e"nd # BOM checking (see #1518) -echo \uFEFF"echo bom_test" | source +# But only in UTF8 +if locale | sgrep -q -i utf-8 + echo \uFEFF"echo bom_test" | source +else + echo "echo bom_test" | source +end # Comments abutting text (#953) echo not#a#comment -- cgit v1.2.3