Archive of RubyForge sup-devel mailing list
 help / color / mirror / Atom feed
* [sup-devel] [PATCH] Start gpg with LC_MESSAGES=C
@ 2010-03-19 18:53 Michael Stapelberg
  2010-03-28 21:36 ` Rich Lane
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Stapelberg @ 2010-03-19 18:53 UTC (permalink / raw)
  To: sup-devel

[-- Attachment #1: Type: text/plain, Size: 170 bytes --]

Hi,

attached you find a patch which ensures that LC_MESSAGES=C is set when starting
gpg so that the regexps for interpreting the gpg output work.

Best regards,
Michael

[-- Attachment #2: 0001-Use-LC_MESSAGES-C-when-starting-gpg-so-that-the-rege.patch --]
[-- Type: application/octet-stream, Size: 813 bytes --]

From 78a452c8701bec4371e0f361246ecf6413e6148e Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <michael@stapelberg.de>
Date: Fri, 19 Mar 2010 19:52:04 +0100
Subject: [PATCH] Use LC_MESSAGES=C when starting gpg so that the regexps for parsing the output works

---
 lib/sup/crypto.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
index 5ece6d9..a5ce680 100644
--- a/lib/sup/crypto.rb
+++ b/lib/sup/crypto.rb
@@ -194,7 +194,7 @@ private
 
   def run_gpg args, opts={}
     args = HookManager.run("gpg-args", { :args => args }) || args
-    cmd = "#{@cmd} #{args}"
+    cmd = "LC_MESSAGES=C #{@cmd} #{args}"
     if opts[:interactive] && BufferManager.instantiated?
       output_fn = Tempfile.new "redwood.output"
       output_fn.close
-- 
1.6.5


[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-28 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-19 18:53 [sup-devel] [PATCH] Start gpg with LC_MESSAGES=C Michael Stapelberg
2010-03-28 21:36 ` Rich Lane

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox