aboutsummaryrefslogtreecommitdiffstats
path: root/lib/alaveteli_external_command.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-17 19:35:48 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-17 19:35:48 +0000
commit41d544631dcb6748ea792f1d8019b5e301056d18 (patch)
tree9598e6a50f06223e55a32583984375fed87541bb /lib/alaveteli_external_command.rb
parent9d735b9f19f53e8aab18a04c5524ff8d051fb397 (diff)
Force the 'C' locale for elinks
The behaviour of elinks is locale-dependent. This patch forces LANG=C which makes the behaviour consistent across platforms.
Diffstat (limited to 'lib/alaveteli_external_command.rb')
-rw-r--r--lib/alaveteli_external_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alaveteli_external_command.rb b/lib/alaveteli_external_command.rb
index 737b48fa9..b1d4f17d1 100644
--- a/lib/alaveteli_external_command.rb
+++ b/lib/alaveteli_external_command.rb
@@ -30,7 +30,7 @@ module AlaveteliExternalCommand
if opts.has_key? :append_to
xc.out = opts[:append_to]
end
- xc.run(opts[:stdin_string])
+ xc.run(opts[:stdin_string], opts[:env] || {})
if xc.status != 0
# Error
$stderr.puts("Error from #{program_name} #{args.join(' ')}:")