From 93c9338aa4471d6b9ac991ce297750481fda0294 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Tue, 26 Sep 2017 16:52:19 -0700 Subject: Force encoding to UTF_8 in chef-shell to prevent failures Currently on some distros where the default isn't UTF (SUSE/omnios/probably others) chef-shell fails to launch with a nasty rb-readline error. It's not the best user experience. Lifting this line from Berkshelf fixes it and makes it easier to troubleshoot on those platforms. Signed-off-by: Tim Smith --- bin/chef-shell | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/chef-shell b/bin/chef-shell index 4d9300ebb7..9b10aa134b 100755 --- a/bin/chef-shell +++ b/bin/chef-shell @@ -23,6 +23,8 @@ begin rescue LoadError end +Encoding.default_external = Encoding::UTF_8 + require "irb" require "irb/completion" require "irb/ext/save-history" -- cgit v1.2.1