1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use Encoding::UTF_8 if RELINE_TEST_ENCODING doesn't exist

This commit is contained in:
aycabta 2019-04-30 12:52:48 +09:00
parent 3be5907e73
commit 567cb1ae1d

View file

@ -5,10 +5,8 @@ require 'test/unit'
RELINE_TEST_ENCODING ||=
if ENV['RELINE_TEST_ENCODING']
Encoding.find(ENV['RELINE_TEST_ENCODING'])
elsif Encoding.default_external == Encoding::IBM437
Encoding::UTF_8
else
Encoding.default_external
Encoding::UTF_8
end
class Reline::TestCase < Test::Unit::TestCase