mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-07-31 11:21:04 +02:00
27908: Functions/VCS_Info/vcs_info: Avoid locale related problems
This commit is contained in:
parent
c613f33635
commit
4277121662
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-26 Frank Terbeck <ft@bewatermyfriend.org>
|
||||
|
||||
* 27908: Functions/VCS_Info/vcs_info: Avoid locale related
|
||||
problems
|
||||
|
||||
2010-04-26 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 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 $
|
||||
*****************************************************
|
||||
|
|
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in a new issue