go/src/encoding/csv
Justin Nuß 9fbc06e6aa encoding/csv: preserve \r\n in quoted fields
The parser mistakenly assumed it could always fold \r\n into \n, which
is not true since a \r\n inside a quoted fields has no special meaning
and should be kept as is.

Fix this by not folding \r\n to \n inside quotes fields.

Fixes #21201

Change-Id: Ifebc302e49cf63e0a027ee90f088dbc050a2b7a6
Reviewed-on: https://go-review.googlesource.com/52810
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-08-14 18:42:20 +00:00
..
example_test.go encoding/csv: add examples for package 2015-06-22 11:11:37 +00:00
reader.go encoding/csv: preserve \r\n in quoted fields 2017-08-14 18:42:20 +00:00
reader_test.go encoding/csv: preserve \r\n in quoted fields 2017-08-14 18:42:20 +00:00
writer.go all: single space after period. 2016-03-02 00:13:47 +00:00
writer_test.go