From 42771216622146246c94e35e4c9dbc2073e7deda Mon Sep 17 00:00:00 2001 From: Frank Terbeck Date: Mon, 26 Apr 2010 18:58:33 +0000 Subject: 27908: Functions/VCS_Info/vcs_info: Avoid locale related problems --- ChangeLog | 7 ++++++- Functions/VCS_Info/vcs_info | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index aa331dcfc..1695f429c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-26 Frank Terbeck + + * 27908: Functions/VCS_Info/vcs_info: Avoid locale related + problems + 2010-04-26 Peter Stephenson * unposted: Completion/Unix/Command/_perforce: update to Perforce @@ -13068,5 +13073,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4965 $ +* $Revision: 1.4966 $ ***************************************************** 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} -- cgit 1.4.1