mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
BOM test should only run in UTF-8 locales
This commit is contained in:
parent
aafff91ac8
commit
6cc64fc9e3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user