summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authormpalmer <mpalmer@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-03 04:38:51 +0000
committermpalmer <mpalmer@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-03 04:38:51 +0000
commit79dcd33aebf8749719e9eff009b8bb3fdaf77751 (patch)
tree98e2cd25da56bff8692beb5ac19d4c0cba75ca37 /lib/puppet
parenta1d4f3567d976b087a2986b202f0f457b8da5d0e (diff)
downloadpuppet-79dcd33aebf8749719e9eff009b8bb3fdaf77751.tar.gz
puppet-79dcd33aebf8749719e9eff009b8bb3fdaf77751.tar.xz
puppet-79dcd33aebf8749719e9eff009b8bb3fdaf77751.zip
Set LANG/LC_ALL/LC_MESSAGES/LANGUAGE to 'C' whenever we execute things, so that the output that comes back is more easily parsed, without needing to understand all sorts of foreign languages
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2456 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb
index 777afab5f..995745f6b 100644
--- a/lib/puppet/util.rb
+++ b/lib/puppet/util.rb
@@ -344,6 +344,7 @@ module Util
Process.euid = arguments[:uid]
Process.uid = arguments[:uid] unless @@os == "Darwin"
end
+ ENV['LANG'] = ENV['LC_ALL'] = ENV['LC_MESSAGES'] = ENV['LANGUAGE'] = 'C'
if command.is_a?(Array)
Kernel.exec(*command)
else