zsh-users
 help / color / mirror / code / Atom feed
* Programable subversion completion depends on locale
@ 2005-02-26 13:31 Lars Noschinski
  0 siblings, 0 replies; only message in thread
From: Lars Noschinski @ 2005-02-26 13:31 UTC (permalink / raw)
  To: zsh-users

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-02-26 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-26 13:31 Programable subversion completion depends on locale Lars Noschinski

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).