BOM test should only run in UTF-8 locales

This commit is contained in:
ridiculousfish 2014-11-02 00:14:16 -07:00
parent aafff91ac8
commit 6cc64fc9e3

View File

@ -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