summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2023-09-01 16:38:33 -0700
committergit <svn-admin@ruby-lang.org>2023-09-01 23:39:00 +0000
commitc86497340f80f4bf5cd689e1468566b88e1a0ef2 (patch)
tree104c6f95b1650fca76fb26fd7c2c467d67c15e3c
parent3c41ef4749dc5df78c6d500c7e16fef384b53b15 (diff)
[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
-rwxr-xr-xyarp/templates/template.rb4
1 files changed, 1 insertions, 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