diff options
author | Sutou Kouhei <[email protected]> | 2020-05-17 11:58:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-07-20 02:32:50 +0900 |
commit | cf7e472ab412044d97d6ec5263daed456c4f2724 (patch) | |
tree | 70cac2dfcdb1ae586cccdedeb5006dbc911b85b4 /lib/csv/parser.rb | |
parent | b8084b5cb4e20d463938b518dd12f91290c3fb1a (diff) |
[ruby/csv] test scanner: specify encoding explicitly
https://github.com/ruby/csv/commit/6e83a1de9c
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3332
Diffstat (limited to 'lib/csv/parser.rb')
-rw-r--r-- | lib/csv/parser.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/csv/parser.rb b/lib/csv/parser.rb index 924ca4620d..68fe238194 100644 --- a/lib/csv/parser.rb +++ b/lib/csv/parser.rb @@ -708,7 +708,7 @@ class CSV if SCANNER_TEST class UnoptimizedStringIO def initialize(string) - @io = StringIO.new(string) + @io = StringIO.new(string, "rb:#{string.encoding}") end def gets(*args) |