* SVN completion fix
@ 2004-10-10 20:03 Bartosz Taudul
0 siblings, 0 replies; only message in thread
From: Bartosz Taudul @ 2004-10-10 20:03 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 423 bytes --]
Hi,
Subversion got support of i18n, and because of this, zsh subversion
completion fails. Fixed by adding 'LANG=C' before svn is called.
wolf
--
Bartek . - Ja mam jeszcze lekcje z 2D, a tam same baby, tak więc...
Taudul : - U nas sześć i tak głośno.
.:....................................................................
w o l f @ p l d - l i n u x . o r g .:. http://wolf.valkyrie.one.pl/
[-- Attachment #2: zsh-svn.patch --]
[-- Type: text/plain, Size: 1468 bytes --]
--- _subversiona 2004-09-24 01:55:00.000000000 +0200
+++ _subversion 2004-10-10 21:51:34.000000000 +0200
@@ -41,7 +41,7 @@
if (( ! $+_svn_cmds )); then
typeset -gA _svn_cmds
_svn_cmds=(
- ${=${(f)${${"$(_call_program commands svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
+ ${=${(f)${${"$(_call_program commands LANG=C svn help)"#l#*Available subcommands:}%%Subversion is a tool*}}/(#s)[[:space:]]#(#b)([a-z]##)[[:space:]]#(\([a-z, ?]##\))#/$match[1] :$match[1]${match[2]:+:${${match[2]//[(),]}// /:}}:}
)
fi
@@ -64,10 +64,10 @@
_svn_subcommand () {
local subcmd _svn_subcmds _svn_subcmd_usage
- _svn_subcmd_usage=${${(M)${(f)"$(_call_program options svn help $1)"}:#usage:*}#usage: $1 }
+ _svn_subcmd_usage=${${(M)${(f)"$(_call_program options LANG=C svn help $1)"}:#usage:*}#usage: $1 }
_svn_subcmds=(
- ${${=${${${(M)${(f)"$(_call_program options svn help $1)"##*Valid options:}:#* :*}%% #:*}/ arg/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}[2,-1]}
+ ${${=${${${(M)${(f)"$(_call_program options LANG=C svn help $1)"##*Valid options:}:#* :*}%% #:*}/ arg/:arg:}/(#b)-([[:alpha:]]) \[--([a-z-]##)\](:arg:)#/(--$match[2])-$match[1]$match[3] (-$match[1])--$match[2]$match[3]}[2,-1]}
)
case $1 in;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-10-10 20:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-10 20:03 SVN completion fix Bartosz Taudul
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).