summaryrefslogtreecommitdiffstats
path: root/test/csv/mac.csv
Commit message (Collapse)AuthorAgeFilesLines
* * test/csv/test_csv.rb: generate bom.csv and mac.csv files on the fly.nahi2003-12-281-2/+0
| | | | | | | | | [ruby-talk:88852] * test/csv/{bom.csv,mac.csv}: removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: add extra pamameter to specify row(record) separater character.nahi2003-09-151-0/+2
To parse Mac's CR separated CSV, do like this. CSV.open("mac.csv", "r", ?,,?\r) { |row| p row.to_a } The 3rd parameter in this example ?, is for column separater and the 4th ?\r is for row separater. Row separater is nil by default. Nil separater means "\r\n" or "\n". * test/csv/test_csv.rb: add tests for above feature. * test/csv/mac.csv: added. Sample CR separated CSV file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e