zsh-users
 help / color / mirror / code / Atom feed
From: Lars Noschinski <lars@public.noschinski.de>
To: zsh-users@sunsite.dk
Subject: Programable subversion completion depends on locale
Date: Sat, 26 Feb 2005 14:31:56 +0100	[thread overview]
Message-ID: <20050226133156.GA32380@twoflower> (raw)

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.


                 reply	other threads:[~2005-02-26 13:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050226133156.GA32380@twoflower \
    --to=lars@public.noschinski.de \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).