summaryrefslogtreecommitdiffstats
path: root/Functions/VCS_Info/vcs_info
diff options
context:
space:
mode:
authorFrank Terbeck <bewater@users.sourceforge.net>2010-04-26 18:58:33 +0000
committerFrank Terbeck <bewater@users.sourceforge.net>2010-04-26 18:58:33 +0000
commit42771216622146246c94e35e4c9dbc2073e7deda (patch)
tree6ad67e206dd8f6483586913d4f19a0f0f1aa1b71 /Functions/VCS_Info/vcs_info
parentunposted: update to _kfmclient (diff)
downloadzsh-42771216622146246c94e35e4c9dbc2073e7deda.tar
zsh-42771216622146246c94e35e4c9dbc2073e7deda.tar.gz
zsh-42771216622146246c94e35e4c9dbc2073e7deda.tar.bz2
zsh-42771216622146246c94e35e4c9dbc2073e7deda.tar.lz
zsh-42771216622146246c94e35e4c9dbc2073e7deda.tar.xz
zsh-42771216622146246c94e35e4c9dbc2073e7deda.tar.zst
zsh-42771216622146246c94e35e4c9dbc2073e7deda.zip
27908: Functions/VCS_Info/vcs_info: Avoid locale related problems
Diffstat (limited to 'Functions/VCS_Info/vcs_info')
-rw-r--r--Functions/VCS_Info/vcs_info8
1 files changed, 7 insertions, 1 deletions
diff --git a/Functions/VCS_Info/vcs_info b/Functions/VCS_Info/vcs_info
index a9e65e119..7ae11230e 100644
--- a/Functions/VCS_Info/vcs_info
+++ b/Functions/VCS_Info/vcs_info
@@ -47,11 +47,17 @@ vcs_info () {
local pat
local -i found
local -a enabled disabled dps
- local -x usercontext vcs rrn
+ local -x usercontext vcs rrn LC_MESSAGES
local -ix maxexports
local -ax msgs
local -Ax vcs_comm
+ LC_MESSAGES=C
+ if [[ -n ${LC_ALL} ]]; then
+ local -x LANG
+ LANG=${LC_ALL}
+ local -x LC_ALL
+ fi
vcs='-init-'; rrn='-all-'
usercontext=${1:-default}