Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Programable subversion completion depends on locale
- X-seq: zsh-users 8549
- From: Lars Noschinski <lars@xxxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Programable subversion completion depends on locale
- Date: Sat, 26 Feb 2005 14:31:56 +0100
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hello!
The subversion completions uses the output of 'svn help' to generate a
list of available subversion commands. But as 'svn help' is run with the
users locale settings, the completion doesn't work with non-english
locales.
I've little experience with shell programming, but adding
---- add Completion/Base/_call_program_li ----------------------
#autoload +X
local tmp
if zstyle -s ":completion:${curcontext}:${1}" command tmp; then
if [[ "$tmp" = -* ]]; then
eval LC_ALL=C "$tmp[2,-1]" "$argv[2,-1]"
else
eval LC_ALL=C "$tmp"
fi
else
eval LC_ALL=C "$argv[2,-1]"
fi
----------------------------------------------------------------
and replacing "_call_program" with "_call_program_li" in
Completion/Unix/_subversion fixes the problem for me.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author