From 10a2b4d0553b39ad0c5e9ae6c470ef4ad450d7bf Mon Sep 17 00:00:00 2001 From: hjp Date: Wed, 16 Nov 2011 12:51:56 +0000 Subject: [PATCH] UTF-8 locale on HP-UX is broken --- .zshrc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 638a216..ae22e50 100644 --- a/.zshrc +++ b/.zshrc @@ -1,3 +1,4 @@ +echo ".zshrc: LANG=$LANG" umask 022 bindkey -v @@ -108,7 +109,18 @@ then # So we explicitely set the latter, even though that's # not the canonical name and may break some day. # - LANG=en_US.UTF-8 + case "`uname -sr`" in + Linux*) + LANG=en_US.UTF-8 + ;; + HP-UX*) + # UTF-8 locale on HP-UX is broken + LANG=en_US.iso88591 + ;; + *) + LANG=en_US.utf8 + ;; + esac else # fall back to latin 1. LANG=en_US.iso88591