Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Programable subversion completion depends on locale



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