diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-02 00:14:16 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-11-02 00:14:16 -0700 |
commit | 6cc64fc9e383a138d8a668501d78871e1cbef93a (patch) | |
tree | e0cc4a2574a0e35782eee8895af28f308e8a88e7 /tests/test9.in | |
parent | aafff91ac835a4d451890a4549582d575af8e8c0 (diff) |
BOM test should only run in UTF-8 locales
Diffstat (limited to 'tests/test9.in')
-rw-r--r-- | tests/test9.in | 7 |
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 |