# Re: Q about the FasterCSV

**URL:** <https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94264>\
**Category:** Ruby\
**Created:** [April 27, 2006, 8:37am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94264 "2006-04-27T08:37:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [April 27, 2006, 8:37am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94264/1 "2006-04-27T08:37:06Z")

</div>

Eric L. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] :

# In the csv file,

# line 1,“1”

# line 2, “2”

# Is it a bug or expected?

imho, a bug.

---

<div class="post-metadata">

**Author:** ![PeSSSSaS\_Botp](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ecd19e/32.png) [@PeSSSSaS\_Botp](https://www.ruby-forum.com/u/PeSSSSaS_Botp)\
**Post date:** [April 27, 2006, 9:01am UTC](https://www.ruby-forum.com/t/re-q-about-the-fastercsv/94264/2 "2006-04-27T09:01:43Z")

</div>

Peña wrote:

> Eric L. [[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] :
> 
> # In the csv file,
> 
> # line 1,“1”
> 
> # line 2, “2”
> 
> # Is it a bug or expected?
> 
> imho, a bug.

No, it’s not a bug. CSV is a simple delimited format. It’s delimited by  
a comma character, not a comma then some arbitrary whitespace. That’s  
how Microsoft’s Excel and Access and SQL Server parsers deal with it,  
too.

And, of course, Ruby’s standard CSV library:

irb(main):001:0\> require ‘csv’  
=\> true  
irb(main):002:0\> CSV.parse ‘line 1,“1”\nline 2, “2”\n’  
CSV::IllegalFormatError: CSV::IllegalFormatError  
from D:/Apps/ruby/lib/ruby/1.8/csv.rb:607:in `get_row' from D:/Apps/ruby/lib/ruby/1.8/csv.rb:556:in `each’  
from D:/Apps/ruby/lib/ruby/1.8/csv.rb:127:in `parse’  
from (irb):2

Cheers,  
Dave
