X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=blobdiff_plain;f=core%2F12_locale%2F12_locale.zprofile;h=689b67421db3ee4ac0ea91f6e392905e6be7b20a;hp=5e7d8803815b92f47531ebbb56482f282bdff0fd;hb=2aed9d3c611918a7b21e330042529ba01df7efb7;hpb=2ddebb388326d38d99b04303397ecadc185ccc58 diff --git a/core/12_locale/12_locale.zprofile b/core/12_locale/12_locale.zprofile index 5e7d880..689b674 100644 --- a/core/12_locale/12_locale.zprofile +++ b/core/12_locale/12_locale.zprofile @@ -32,7 +32,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' || "$OSTYPE" = 'cygwin') && $locale != 'C' ]] \ + [[ ( "$OSTYPE" =~ '^linux-gnu' || "$OSTYPE" = 'cygwin') && $locale != 'C' ]] \ && encoding=$lc_messages:e:l:gs/-// \ || encoding=$lc_messages:e [[ -n "$encoding" ]] && locale="$locale.$encoding"