diff --git a/lib/reline/general_io.rb b/lib/reline/general_io.rb index 6281d5fbf6..08b9d9c3ae 100644 --- a/lib/reline/general_io.rb +++ b/lib/reline/general_io.rb @@ -2,7 +2,7 @@ require 'timeout' class Reline::GeneralIO def self.encoding - Encoding.default_external + RUBY_PLATFORM =~ /mswin|mingw/ ? Encoding::UTF_8 : Encoding::default_external end RAW_KEYSTROKE_CONFIG = {}