From 79dcd33aebf8749719e9eff009b8bb3fdaf77751 Mon Sep 17 00:00:00 2001 From: mpalmer Date: Thu, 3 May 2007 04:38:51 +0000 Subject: 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 --- lib/puppet/util.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') 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 -- cgit