]> Cypherpunks repositories - gostls13.git/commit
encoding/csv: always allow trailing commas
authorPieter Droogendijk <pieter@binky.org.uk>
Fri, 9 Aug 2013 05:46:01 +0000 (15:46 +1000)
committerRob Pike <r@golang.org>
Fri, 9 Aug 2013 05:46:01 +0000 (15:46 +1000)
commitf2bc275525807e1c83f524325d03cd6e7e18fe7d
tree92fe48b6cc396241f8e5ee40bf0bdaa89bd249af
parent357f73369510e3ef37e2a473a7fd9034b1ddeeed
encoding/csv: always allow trailing commas

Original CL by rsc (11916045):

The motivation for disallowing them was RFC 4180 saying
"The last field in the record must not be followed by a comma."
I believe this is an admonition to CSV generators, not readers.
When reading, anything followed by a comma is not the last field.

Fixes #5892.

R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/12294043
src/pkg/encoding/csv/reader.go
src/pkg/encoding/csv/reader_test.go