• Joe Tsai's avatar
    encoding/csv: forbid certain Comma and Comment runes · e7fed7fa
    Joe Tsai authored
    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/72793Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    e7fed7fa
Name
Last commit
Last update
..
example_test.go Loading commit data...
reader.go Loading commit data...
reader_test.go Loading commit data...
writer.go Loading commit data...
writer_test.go Loading commit data...