diff options
author | Bryan McLellan <btm@loftninjas.org> | 2014-09-26 18:11:29 -0400 |
---|---|---|
committer | Bryan McLellan <btm@loftninjas.org> | 2014-09-26 18:11:29 -0400 |
commit | 097c135ffe922a6fc37068b97586181ac55cba33 (patch) | |
tree | 322b99b7d2a19a5f2e5550b11fda040ea4018ce3 | |
parent | 791232c8e08743447fd2a1bf4eb69b87e5d24c00 (diff) | |
parent | 6c892b3832299886c311e4f5c707f9705fae0138 (diff) | |
download | chef-097c135ffe922a6fc37068b97586181ac55cba33.tar.gz |
Merge pull request #2122 from opscode/btm/windows-locale
Quietly keep locale en_US.UTF-8 on Windows
-rw-r--r-- | lib/chef/config.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/config.rb b/lib/chef/config.rb index 74607e8368..107b50ee85 100644 --- a/lib/chef/config.rb +++ b/lib/chef/config.rb @@ -619,7 +619,11 @@ class Chef 'C' end rescue - Chef::Log.warn "No usable locale -a command found, assuming you have en_US.UTF-8 installed." + if Chef::Platform.windows? + Chef::Log.debug "Defaulting to locale en_US.UTF-8 on Windows, until it matters that we do something else." + else + Chef::Log.warn "No usable locale -a command found, assuming you have en_US.UTF-8 installed." + end 'en_US.UTF-8' end end |