Skip to content

Breaking Change in v3.0.9 #78

Description

@jherdman

I've traced back a breaking change to v3.0.9. Here's the minimal repro:

str = "\xFE\xFFColumn1,Column2\n" + "\"value1.1\",value1.2\n"
io = StringIO.new(str)
io.gets *["\n", 8192]

In v3.0.8:

io.gets *["\n", 8192]
#=>  "\xFE\xFFColumn1,Column2\n"

In v3.0.9:

     ArgumentError:
       encoding mismatch: UTF-16BE IO with UTF-8 RS

I suspect there's some kind of action for me, but this error message is a bit opaque (i.e. what is RS?).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions