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: LazyQuotes option breaks if the fields are quoted and the lazy quotes appear at the end of the field #6258
Comments
Comment 1 by alex@zylman.com: Also reproduced on go version go1.1.2 darwin/amd64 |
Comment 4 by alex@zylman.com: I understand that you guys probably get a lot of weird edge cases like this that are are low priority, but if this is a feature request and not a bug, then there's a bug in the documentation since it says this works. :/ |
Comment 5 by alex@zylman.com: So I think there might be errors any time that LazyQuotes are at field boundaries. Other failing cases I found today: "Field1","Field2",""LazyQuotes" Field3","Field4","Field5" and Field1,Field2,"LazyQuotes" Field3,Field4,Field5 |
This could be fixed for the simple case by peeking ahead for the next rune after a lazy quote, but I don't think this is really possible to fix in a simple and consistent way for all cases. I don't think this is really worth fixing. The issue author originally wrote that
But I can't find anything about this case in the documentation. There is a case with a double-quoted word in a non-lazy quoted field, but nothing about a lazy quoted case. |
I agree that this can't really be fixed. There is an infinite number of edge cases where |
by alex@zylman.com:
Attachments:
The text was updated successfully, but these errors were encountered: