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

ruby-changes:62284

From: Sutou <ko1@a...>
Date: Mon, 20 Jul 2020 03:35:34 +0900 (JST)
Subject: [ruby-changes:62284] 5359121a56 (master): [ruby/csv] Revert "test: use binary mode explicitly for Ruby 2.7"

https://git.ruby-lang.org/ruby.git/commit/?id=5359121a56

From 5359121a56e90bd4b42a6638046ca34ea72dee8d Mon Sep 17 00:00:00 2001
From: Sutou Kouhei <kou@c...>
Date: Wed, 13 May 2020 08:33:33 +0900
Subject: [ruby/csv] Revert "test: use binary mode explicitly for Ruby 2.7"

This reverts commit 736174d28413a4c36630b0daf2f170c8d2fc9abe.

It doesn't solve anything.

https://github.com/ruby/csv/commit/0ee3bdd0d3

diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb
index ea686cb..cd63af6 100644
--- a/test/csv/test_encodings.rb
+++ b/test/csv/test_encodings.rb
@@ -83,7 +83,7 @@ class TestCSVEncodings < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/csv/test_encodings.rb#L83
         no_warnings do
           Encoding.default_external = encoding
         end
-        result = CSV.read(@temp_csv_path, "rb")[0][0]
+        result = CSV.read(@temp_csv_path)[0][0]
       ensure
         no_warnings do
           Encoding.default_external = default_external
-- 
cgit v0.10.2


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

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