summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorMatt Wrock <matt@mattwrock.com>2016-02-24 20:27:56 -0800
committerMatt Wrock <matt@mattwrock.com>2016-02-24 20:27:56 -0800
commitb912d1075286261b0e9523cecff1997b59034b75 (patch)
tree1aea8c311c4a800e646f1ab0841e828b4812d1b0 /lib/chef
parent1967e8c24ff5990f5352cec4ae84691b1643b2e1 (diff)
downloadchef-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.rb2
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