From 567cb1ae1d25b837bed6e91af1418c6a4f25cc90 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 30 Apr 2019 12:52:48 +0900 Subject: Use Encoding::UTF_8 if RELINE_TEST_ENCODING doesn't exist --- test/reline/helper.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') diff --git a/test/reline/helper.rb b/test/reline/helper.rb index 74be79140c..249f40350c 100644 --- a/test/reline/helper.rb +++ b/test/reline/helper.rb @@ -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 -- cgit v1.2.3