Skip to content

Commit

Permalink
Try ignoring $LANG
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Sep 1, 2023
1 parent 5fb83de commit 8c9e4c1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions templates/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -340,9 +340,7 @@ def locals
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
Expand Down

0 comments on commit 8c9e4c1

Please sign in to comment.