We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?).
The text was updated successfully, but these errors were encountered:
I couldn't reproduce this.
Did you really use the script? (The script doesn't have require "stringio".)
require "stringio"
Sorry, something went wrong.
Ah ha! I missed a few things. Here's the revised script:
require 'stringio' str = "\xFE\xFFColumn1,Column2\n" + "\"value1.1\",value1.2\n" io = StringIO.new(str) io.set_encoding_by_bom io.gets *["\n", 8192]
Convert rs to match stringio encoding
b91e30c
Fix ruby#78
Successfully merging a pull request may close this issue.
I've traced back a breaking change to v3.0.9. Here's the minimal repro:
In v3.0.8:
In v3.0.9:
I suspect there's some kind of action for me, but this error message is a bit opaque (i.e. what is RS?).
The text was updated successfully, but these errors were encountered: