Revert "Ensure that UTF-8 works if LANG contains it."

This was a really stupid change that I should have tested more
before pushing. It broke any non-interactive usage, such as SSH,
fish config, or parsing the script output, as config.fish is
loaded for everything.

There are no issues with different terminal emulators, so this
change will be pushed in the future, but only running in interactive
mode. I apologize for any issues caused by this commit.

This reverts commit d61adfbc53.
This commit is contained in:
Konrad Borowski
2013-12-17 20:47:14 +01:00
parent d61adfbc53
commit 5c96bca1ca

View File

@@ -130,13 +130,3 @@ function . --description 'Evaluate contents of file (deprecated, see "source")'
source $argv
end
end
# Fix lame terminals lying about their encoding (UTF-8 when it's not).
function __fish_update_charset --on-variable LANG
switch $LANG
case \*.UTF-8
echo -n \e%G
end
end
__fish_update_charset