ruby-changes:59807
From: aycabta <ko1@a...>
Date: Sun, 26 Jan 2020 13:03:54 +0900 (JST)
Subject: [ruby-changes:59807] c257d81186 (master): Always use UTF-8 for Reline::GeneralIO on Windows
https://git.ruby-lang.org/ruby.git/commit/?id=c257d81186 From c257d811862b9e29ccff4305d836077835091112 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sun, 26 Jan 2020 12:55:13 +0900 Subject: Always use UTF-8 for Reline::GeneralIO on Windows diff --git a/lib/reline/general_io.rb b/lib/reline/general_io.rb index 6281d5f..08b9d9c 100644 --- a/lib/reline/general_io.rb +++ b/lib/reline/general_io.rb @@ -2,7 +2,7 @@ require 'timeout' https://github.com/ruby/ruby/blob/trunk/lib/reline/general_io.rb#L2 class Reline::GeneralIO def self.encoding - Encoding.default_external + RUBY_PLATFORM =~ /mswin|mingw/ ? Encoding::UTF_8 : Encoding::default_external end RAW_KEYSTROKE_CONFIG = {} -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/