From: Alexander Barton Date: Thu, 16 Mar 2017 14:59:33 +0000 (+0100) Subject: 12_locale: Cygwin lowercases encodings as well X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909cc53410a7226d643888b9777440542768c80b;hp=aa5e2e2a93bedaf3e990f3996b5768bf94d23d8d;p=ax-zsh.git 12_locale: Cygwin lowercases encodings as well --- diff --git a/core/12_locale/12_locale.zprofile b/core/12_locale/12_locale.zprofile index 5d976e1..0c9b554 100644 --- a/core/12_locale/12_locale.zprofile +++ b/core/12_locale/12_locale.zprofile @@ -12,7 +12,7 @@ while true; do [[ "$lc_messages" = '"C"' && "$LANG" != 'C' && "$LC_ALL" != 'C' ]] && lc_messages=$LANG lc_messages=$lc_messages:gs/\"// locale=$lc_messages:r - [[ "$OSTYPE" = 'linux-gnu' && $locale != 'C' ]] \ + [[ ( "$OSTYPE" = 'linux-gnu' || "$OSTYPE" = 'cygwin') && $locale != 'C' ]] \ && encoding=$lc_messages:e:l:gs/-// \ || encoding=$lc_messages:e [[ -n "$encoding" ]] && locale="$locale.$encoding"