Fix macOS locale fix.

master
Icedream 2018-07-23 11:07:07 +02:00
parent e86de5f25e
commit dcfbdbb14c
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 11 additions and 5 deletions

View File

@ -55,11 +55,17 @@ if [ -d "$HOME/Library/Python/2.7" ]; then
PATH="$HOME/Library/Python/2.7/bin:$PATH" PATH="$HOME/Library/Python/2.7/bin:$PATH"
export PATH export PATH
fi fi
if [ -z "$LC_ALL" ]; then section_end
export LC_ALL=en_US.UTF-8
fi # Locale fix
if [ -z "$LANG" ]; then section "locale fix"
export LANG=en_US.UTF-8 if [ "$(uname -s)" = "Darwin" ]; then
if [ -z "$LC_ALL" ]; then
export LC_ALL=C
fi
if [ -z "$LANG" ]; then
export LANG=C
fi
fi fi
section_end section_end