go/src/encoding/csv
Joe Tsai e7fed7fa35 encoding/csv: forbid certain Comma and Comment runes
The record delimiter (not configurable by user) is "\r\n" or "\n".
It is insensible for the user to set Comma or Comment delimiters
to be some character that conflicts with the record delimiter.
Furthermore, it is insensible for Comma or Comment to be the same rune.
Allowing this leaks implementation details to the user in regards to
the evaluation order of which rune is checked for first.

Fixes #22404

Change-Id: I31e86abc9b3a8fb4584e090477795587740970ae
Reviewed-on: https://go-review.googlesource.com/72793
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2017-10-25 01:43:46 +00:00
..
example_test.go encoding/csv: add examples for package 2015-06-22 11:11:37 +00:00
reader.go encoding/csv: forbid certain Comma and Comment runes 2017-10-25 01:43:46 +00:00
reader_test.go encoding/csv: forbid certain Comma and Comment runes 2017-10-25 01:43:46 +00:00
writer.go encoding/csv: forbid certain Comma and Comment runes 2017-10-25 01:43:46 +00:00
writer_test.go