[MacRuby-devel] [MacRuby] #813: /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/csv.rb:1817:in `block': Unclosed quoted field on line 1. (CSV::MalformedCSVError)

MacRuby ruby-noreply at macosforge.org
Sun Jul 25 15:54:55 PDT 2010


#813: /Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/1.9.0/csv.rb:1817:in
`block': Unclosed quoted field on line 1. (CSV::MalformedCSVError)
------------------------------+---------------------------------------------
 Reporter:  jadarkwah@…       |       Owner:  lsansonetti@…        
     Type:  defect            |      Status:  new                  
 Priority:  blocker           |   Milestone:                       
Component:  MacRuby           |    Keywords:                       
------------------------------+---------------------------------------------

Comment(by jadarkwah@…):

 It appears that if the lines in the csv file are quoted, then macuby acts
 as expected.
 So the following csv file works.

 "1,2,River LINE,0"
 "2,2,Princeton Shuttle,0"
 "3,2,Atlantic City Rail Line,2"
 "4,2,Montclair-Boonton Line,2"
 "5,2,Montclair-Boonton Line,2"
 "6,2,Hudson-Bergen Light Rail,0"
 "7,2,Main/Bergen County Line,2"
 "8,2,Port Jervis Line,2"
 "9,2,Morris & Essex Line,2"
 "10,2,Gladstone Branch,2"
 "11,2,Northeast Corridor,2"
 "12,2,North Jersey Coast Line,2"
 "13,2,North Jersey Coast Line,2"
 "14,2,Newark Light Rail,0"
 "15,2,Pascack Valley Line,2"
 "16,2,Princeton Shuttle,2"
 "17,2,Raritan Valley Line,2"
 "18,2,Meadowlands Rail Line,2"

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/813#comment:1>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list