aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test9.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test9.in')
-rw-r--r--tests/test9.in7
1 files changed, 6 insertions, 1 deletions
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