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