From 909cc53410a7226d643888b9777440542768c80b Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 16 Mar 2017 15:59:33 +0100 Subject: [PATCH] 12_locale: Cygwin lowercases encodings as well --- core/12_locale/12_locale.zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.39.2