1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/csv] test scanner: specify encoding explicitly

https://github.com/ruby/csv/commit/6e83a1de9c
This commit is contained in:
Sutou Kouhei 2020-05-17 11:58:07 +09:00 committed by Nobuyoshi Nakada
parent b8084b5cb4
commit cf7e472ab4
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2020-07-20 03:35:44 +09:00

View file

@ -708,7 +708,7 @@ class CSV
if SCANNER_TEST if SCANNER_TEST
class UnoptimizedStringIO class UnoptimizedStringIO
def initialize(string) def initialize(string)
@io = StringIO.new(string) @io = StringIO.new(string, "rb:#{string.encoding}")
end end
def gets(*args) def gets(*args)