ruby-changes:62281
From: Sutou <ko1@a...>
Date: Mon, 20 Jul 2020 03:35:27 +0900 (JST)
Subject: [ruby-changes:62281] 0ee5578e8c (master): [ruby/csv] test: use binary mode explicitly for Ruby 2.7
https://git.ruby-lang.org/ruby.git/commit/?id=0ee5578e8c From 0ee5578e8caa8562cc48234684aaab086a3e13e9 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Wed, 13 May 2020 08:27:05 +0900 Subject: [ruby/csv] test: use binary mode explicitly for Ruby 2.7 https://github.com/ruby/csv/commit/736174d284 diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb index cd63af6..ea686cb 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)[0][0] + result = CSV.read(@temp_csv_path, "rb")[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/