summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-04-30 12:52:48 +0900
committeraycabta <aycabta@gmail.com>2019-04-30 12:53:24 +0900
commit567cb1ae1d25b837bed6e91af1418c6a4f25cc90 (patch)
treebd67fa516e28096df2998dc806623ca3bc052a3b /test
parent3be5907e734f9c88af577bb0b0e8ec2d66b7b2f7 (diff)
Use Encoding::UTF_8 if RELINE_TEST_ENCODING doesn't exist
Diffstat (limited to 'test')
-rw-r--r--test/reline/helper.rb4
1 files changed, 1 insertions, 3 deletions
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