From dcfbdbb14cef8f6dfeb5c0f0bfc5d791cc523efb Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Mon, 23 Jul 2018 11:07:07 +0200 Subject: [PATCH] Fix macOS locale fix. --- home/dotfiles/zshrc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/home/dotfiles/zshrc b/home/dotfiles/zshrc index 7660d86..b90ba9a 100644 --- a/home/dotfiles/zshrc +++ b/home/dotfiles/zshrc @@ -55,11 +55,17 @@ if [ -d "$HOME/Library/Python/2.7" ]; then PATH="$HOME/Library/Python/2.7/bin:$PATH" export PATH fi -if [ -z "$LC_ALL" ]; then - export LC_ALL=en_US.UTF-8 -fi -if [ -z "$LANG" ]; then - export LANG=en_US.UTF-8 +section_end + +# Locale fix +section "locale fix" +if [ "$(uname -s)" = "Darwin" ]; then + if [ -z "$LC_ALL" ]; then + export LC_ALL=C + fi + if [ -z "$LANG" ]; then + export LANG=C + fi fi section_end