-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
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
encoding/csv: Classic Mac (CR) line delimiters not supported #7802
Comments
FWIW, I seem to have fixed it by changing readRune in reader.go to do this..
Shall I submit a patch? |
No, we're not going to modify things ad hoc to support Classic Mac OS line endings. Consider the |
Writing your own io.Reader that does whatever modification is necessary is fairly straightforward and the right solution for dealing with non-standard input. Changing encoding/csv is not. |
In my work I see a lot of classic mac os line endings so a patch would be a very welcome addition. Looks like I'm going to Implement a reader to adapt '\r' to '\n'. |
In case anyone ends up here in the future, there is an implementation of the workaround described above here: https://godoc.org/github.com/ctessum/macreader |
by olegs.denisovs:
The text was updated successfully, but these errors were encountered: