From c86497340f80f4bf5cd689e1468566b88e1a0ef2 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Fri, 1 Sep 2023 16:38:33 -0700 Subject: [PATCH] [ruby/yarp] Try ignoring $LANG because the previous commit did not fix it. https://github.com/ruby/ruby/actions/runs/6054915979/job/16433070185#step:9:155 https://github.com/ruby/yarp/commit/8c9e4c1f15 --- yarp/templates/template.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/yarp/templates/template.rb b/yarp/templates/template.rb index eea3938e9c..680ab82620 100755 --- a/yarp/templates/template.rb +++ b/yarp/templates/template.rb @@ -340,9 +340,7 @@ if __FILE__ == $0 if ARGV.empty? YARP::TEMPLATES.each { |filepath| YARP.template(filepath) } else # ruby/ruby - if ENV["LANG"] == "C" - Encoding.default_external = Encoding::UTF_8 - end + Encoding.default_external = Encoding::UTF_8 name, write_to = ARGV YARP.template(name, write_to: write_to) end