summaryrefslogtreecommitdiff
path: root/.zsh/zprofile/10_locale
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2011-10-17 13:57:25 +0200
committerTobias Klauser <tklauser@distanz.ch>2011-10-17 13:57:55 +0200
commit2e840e349aa97be8b07c9d417f79a4744a0102be (patch)
treeb67fcdb7046550348529fd7d058f6ff0ea8c7684 /.zsh/zprofile/10_locale
parenta25e0fcfb8b70394959ca53125f289c13e7ddf28 (diff)
Add proper locale names for Mac OS X
Diffstat (limited to '.zsh/zprofile/10_locale')
-rw-r--r--.zsh/zprofile/10_locale14
1 files changed, 14 insertions, 0 deletions
diff --git a/.zsh/zprofile/10_locale b/.zsh/zprofile/10_locale
index 0563900..e2902bb 100644
--- a/.zsh/zprofile/10_locale
+++ b/.zsh/zprofile/10_locale
@@ -38,10 +38,20 @@ if [ -x =locale ]; then
_set_locale en_GB.UTF-8
export LANG=en_GB
;;
+ # named differently on Mac OS X
+ *en_GB.UTF-8*)
+ _set_locale en_GB.UTF-8
+ export LANG=en_GB
+ ;;
*en_US.utf8*)
_set_locale en_US.UTF-8
export LANG=en_US
;;
+ # named differently on Mac OS X
+ *en_US.UTF-8*)
+ _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"
@@ -79,6 +89,10 @@ if [ -x =locale ]; then
*de_CH.utf8*)
_set_regional_locale de_CH.UTF-8
;;
+ # named differently on Mac OS X
+ *de_CH.UTF-8*)
+ _set_regional_locale de_CH.UTF-8
+ ;;
*de_CH.iso885915*)
_set_regional_locale de_CH.ISO-8859-15
;;