evan / ccsv

A pure-C CSV parser for Ruby
http://blog.evanweaver.com/files/doc/fauna/ccsv/
Academic Free License v3.0
64 stars 52 forks source link

Row separators should be escaped by double-quoting the entire field, not by backslash-escaping the row separator #13

Open jpmckinney opened 9 years ago

jpmckinney commented 9 years ago

No CSV specification escapes fields like in this test https://github.com/evan/ccsv/blob/master/spec/ccsv_spec.rb#L111

Similarly, column separators are not escaped with backslashes, but by using double-quoting https://github.com/evan/ccsv/blob/master/spec/ccsv_spec.rb#L76