X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.zsh%2Fzprofile%2F10_locale;h=1813628719da615077de0fd16972e6548afa2055;hb=6aef4f4cbd4de6478e2cfa59621adfe104c7a497;hp=9280f7a763a7dc306297c21424fd0db9e4fae6c8;hpb=1edf3ccaf2250a42f75b6e56db0a1df3dbcd9c23;p=zsh.git diff --git a/.zsh/zprofile/10_locale b/.zsh/zprofile/10_locale index 9280f7a..1813628 100644 --- a/.zsh/zprofile/10_locale +++ b/.zsh/zprofile/10_locale @@ -1,3 +1,4 @@ +# -*- mode: sh -*- # zprofile/10_locale # # Defines locale settings @@ -5,7 +6,7 @@ # Copyright © 1994–2008 martin f. krafft # Released under the terms of the Artistic Licence 2.0 # -# Source repository: http://git.madduck.net/v/etc/zsh.git +# Source repository: git://git.madduck.net/etc/zsh.git # _set_locale() @@ -33,40 +34,22 @@ if [ -x =locale ]; then _LOCALE="$(locale -a)" # I prefer British English and UTF-8 over US English and non-UTF-8 + # And if available, I'll take New Zealand-ey (yes, I love you, GIRLFRIEND) case "$_LOCALE" in - *en_GB.utf8*) - _set_locale en_GB.UTF-8 - export LANG=en_GB - ;; *en_US.utf8*) _set_locale en_US.UTF-8 export LANG=en_US ;; - *en_GB.iso885915*) - _set_locale en_GB.ISO-8859-15 - warn "no utf-8 locale available" - export LANG=en_GB - ;; *en_US.iso885915*) warn "no utf-8 locale available" _set_locale en_US.ISO-8859-15 export LANG=en_US ;; - *en_GB.iso88591*) - warn "no utf-8 locale available" - _set_locale en_GB.ISO-8859-1 - export LANG=en_GB - ;; *en_US.iso88591*) warn "no utf-8 locale available" _set_locale en_US.ISO-8859-1 export LANG=en_US ;; - *en_GB*) - warn "no utf-8 or iso locale available" - _set_locale en_GB - export LANG=en_GB - ;; *en_US*) warn "no utf-8 or iso locale available" _set_locale en_US @@ -74,27 +57,6 @@ if [ -x =locale ]; then ;; esac - # regional stuff should be Swiss over German - case "$_LOCALE" in - *de_CH.utf8*) - _set_regional_locale de_CH.UTF-8 - ;; - *de_CH.iso885915*) - _set_regional_locale de_CH.ISO-8859-15 - ;; - *de_CH.iso88591*) - _set_regional_locale de_CH.ISO-8859-1 - ;; - *de_DE.utf8*) - _set_regional_locale de_DE.UTF-8 - ;; - *de_DE.iso885915*) - _set_regional_locale de_DE.ISO-8859-15 - ;; - *de_DE.iso88591*) - _set_regional_locale de_DE.ISO-8859-1 - ;; - esac unset _LOCALE fi