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:
parent
b8084b5cb4
commit
cf7e472ab4
Notes:
git
2020-07-20 03:35:44 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue