From a22f20c0009844b79ff55ef8cbb1d95438c105a7 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 23 Feb 2009 20:57:57 +0100 Subject: bugfix: bzr didn't worked when using non-ascii in Pollnames --- bzr.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'bzr.rb') diff --git a/bzr.rb b/bzr.rb index 1fd37db..cd1fe20 100644 --- a/bzr.rb +++ b/bzr.rb @@ -1,25 +1,26 @@ +BZRCMD="export LC_ALL=de_DE.UTF-8; bzr" class VCS def VCS.init - `bzr init` + `#{BZRCMD} init` end def VCS.add file - `bzr add #{file}` + `#{BZRCMD} add #{file}` end def VCS.revno - `bzr revno`.to_i + `#{BZRCMD} revno`.to_i end def VCS.cat revision, file - `export LC_ALL=de_DE.UTF-8;bzr cat -r #{revision} #{file}` + `#{BZRCMD} cat -r #{revision} #{file}` end def VCS.history - `export LC_ALL=de_DE.UTF-8; bzr log --forward`.split("-"*60) + `#{BZRCMD} log --forward`.split("-"*60) end def VCS.commit comment - `export LC_ALL=de_DE.UTF-8; bzr commit -m '#{comment}'` + `#{BZRCMD} commit -m '#{comment}'` end end -- cgit v1.2.3