summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-06-18 09:49:30 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-06-18 09:49:30 +1000
commit0b0892d382a78b3a69a97d6b3820e0a101665b8f (patch)
treefef77b05ba794a7eea410bc12812477d009180c8
parentdef18b5352c8d3365531e9bdb030e240c9178925 (diff)
downloadfacter-0b0892d382a78b3a69a97d6b3820e0a101665b8f.tar.gz
facter-0b0892d382a78b3a69a97d6b3820e0a101665b8f.tar.xz
facter-0b0892d382a78b3a69a97d6b3820e0a101665b8f.zip
Fixes #1334 - Forced Facter to use LANG=C
-rw-r--r--CHANGELOG4
-rw-r--r--lib/facter.rb3
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 7cb6bff..b097ad8 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,7 @@
?:
- Fixes #1357 - change ps syntax for OSX and BSD
+ Fixes #1334 - Forced Facter to use LANG=C
+
+ Fixes #1357 - Change ps syntax for OSX and BSD
Set the timeout on the AIX kernelrelease fact to 5 seconds.
diff --git a/lib/facter.rb b/lib/facter.rb
index 2286400..b73d5ba 100644
--- a/lib/facter.rb
+++ b/lib/facter.rb
@@ -41,6 +41,9 @@ module Facter
# puts Facter['operatingsystem']
#
+ # Set LANG to force i18n to C
+ #
+ ENV['LANG'] = 'C'
GREEN = ""
RESET = ""