make configuration options work when using Turkish locale (#1036)

This commit is contained in:
Roman Perepelitsa 2020-10-05 14:46:48 +02:00
commit 3aec0c6b36
3 changed files with 42 additions and 36 deletions

View file

@ -371,8 +371,8 @@ function _gitstatus_daemon"${1:-}"() {
trap '' PIPE
local uname_sm
uname_sm="${(L)$(command uname -sm)}" || return
[[ $uname_sm == [^' ']##' '[^' ']## ]] || return
uname_sm="${${(L)$(command uname -sm)}//ı/i}" || return
[[ $uname_sm == [^' ']##' '[^' ']## ]] || return
local uname_s=${uname_sm% *}
local uname_m=${uname_sm#* }