From: Eric Luo Date: 2006-05-09T13:41:59+09:00 Subject: Re: Q about the FasterCSV ------=_Part_5806_23982484.1147149717314 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Why 'a,"bc"d' could not be parsed correctly in both FasterCSV and CSV libary. while "a,'bc'd" could be parsed into [["a", "'bc'd"]] successfully. -------------------------------------------------------------------------- irb(main):001:0> require 'fastercsv' true irb(main):002:0> FasterCSV.parse("a,'bc'd") [["a", "'bc'd"]] irb(main):003:0> FasterCSV.parse('a,"bc"d') FasterCSV::MalformedCSVError: Unclosed quoted field on line 1. from e:/ruby/lib/ruby/gems/1.8/gems/fastercsv-0.2.0/lib/faster_csv.rb:1= 165:in `shift' from e:/ruby/lib/ruby/gems/1.8/gems/fastercsv-0.2.0/lib/faster_csv.rb:1= 090:in `shift' from e:/ruby/lib/ruby/gems/1.8/gems/fastercsv-0.2.0/lib/faster_csv.rb:1= 040:in `each' from e:/ruby/lib/ruby/gems/1.8/gems/fastercsv-0.2.0/lib/faster_csv.rb:1= 051:in `read' from e:/ruby/lib/ruby/gems/1.8/gems/fastercsv-0.2.0/lib/faster_csv.rb:8= 15:in `parse' from (irb):3 irb(main):004:0> ------=_Part_5806_23982484.1147149717314--