diff options
author | aycabta <aycabta@gmail.com> | 2019-04-30 12:27:23 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-04-30 12:33:24 +0900 |
commit | 319eee0f4a13d29a82eeffa348b8a3b5685e2f6e (patch) | |
tree | 760b408031cb7dba813943aba5bc063012018823 /test | |
parent | 17350c7e5534c8678097d70698fe08614a6c3997 (diff) |
Use Encoding::UTF_8 if Encoding.default_external is Encoding::IBM437
Diffstat (limited to 'test')
-rw-r--r-- | test/reline/helper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/reline/helper.rb b/test/reline/helper.rb index 2dced82a12..74be79140c 100644 --- a/test/reline/helper.rb +++ b/test/reline/helper.rb @@ -5,6 +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 end |