diff options
author | Matt Wrock <matt@mattwrock.com> | 2016-02-24 20:27:56 -0800 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2016-02-24 20:27:56 -0800 |
commit | b912d1075286261b0e9523cecff1997b59034b75 (patch) | |
tree | 1aea8c311c4a800e646f1ab0841e828b4812d1b0 /lib/chef | |
parent | 1967e8c24ff5990f5352cec4ae84691b1643b2e1 (diff) | |
download | chef-b912d1075286261b0e9523cecff1997b59034b75.tar.gz |
ensure paths maintain utf-8ness in non ascii encodingsumlaut
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/mixin/path_sanity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/mixin/path_sanity.rb b/lib/chef/mixin/path_sanity.rb index 7078c585e0..6a8e017bcd 100644 --- a/lib/chef/mixin/path_sanity.rb +++ b/lib/chef/mixin/path_sanity.rb @@ -37,7 +37,7 @@ class Chef env_path = env["PATH"].dup env_path << path_separator unless env["PATH"].empty? env_path << sane_path - env["PATH"] = env_path + env["PATH"] = env_path.encode("utf-8", invalid: :replace, undef: :replace) end end end |