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:
parent
3be5907e73
commit
567cb1ae1d
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue