mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user