[前][次][番号順一覧][スレッド一覧]

ruby-changes:66539

From: aycabta <ko1@a...>
Date: Mon, 21 Jun 2021 22:12:02 +0900 (JST)
Subject: [ruby-changes:66539] 9498ea9385 (master): Revert "Use Encoding.default_external for tests of Readline::HISTORY"

https://git.ruby-lang.org/ruby.git/commit/?id=9498ea9385

From 9498ea9385c5e9b29daa8a5109c99507ebc326f9 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Mon, 21 Jun 2021 21:43:00 +0900
Subject: Revert "Use Encoding.default_external for tests of Readline::HISTORY"

This reverts commit 089a26b0a619a649b1958061df8f21a6cdc6cacd.
---
 test/readline/test_readline_history.rb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/readline/test_readline_history.rb b/test/readline/test_readline_history.rb
index 793330e..f4e93fa 100644
--- a/test/readline/test_readline_history.rb
+++ b/test/readline/test_readline_history.rb
@@ -244,11 +244,11 @@ module BasetestReadlineHistory https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline_history.rb#L244
 
   def assert_external_string_equal(expected, actual)
     assert_equal(expected, actual)
-    assert_equal(get_default_encoding, actual.encoding)
+    assert_equal(get_default_internal_encoding, actual.encoding)
   end
 
-  def get_default_encoding
-    return Encoding.default_external || Encoding.find("locale")
+  def get_default_internal_encoding
+    return Encoding.default_internal || Encoding.find("locale")
   end
 end
 
@@ -277,7 +277,7 @@ class TestRelineAsReadlineHistory < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/readline/test_readline_history.rb#L277
     super
   end
 
-  def get_default_encoding
+  def get_default_internal_encoding
     if RUBY_PLATFORM =~ /mswin|mingw/
       Encoding.default_internal || Encoding::UTF_8
     else
-- 
cgit v1.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]