FasterCSV's :auto option for row separator doesn't work in JRuby
----------------------------------------------------------------

                 Key: JRUBY-2348
                 URL: http://jira.codehaus.org/browse/JRUBY-2348
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1RC3
         Environment: Mac OS X 10.4.11, JRuby revision 6378 on Java 1.5.0_13, 
Ruby 1.8.6 patchlevel 111, FasterCSV 1.2.3
            Reporter: David Yip
            Assignee: Thomas E Enebo
         Attachments: fastercsv_test.rb, fastercsv_test_rowsep.rb

Running the following script

require 'rubygems'
require 'fastercsv'

str = "a,b,c,d\ne,f,g,h"
puts FasterCSV.parse(str).inspect


produces two different results:

nevrast:~/src trythil$ ruby fastercsv_test.rb 
[["a", "b", "c", "d"], ["e", "f", "g", "h"]]
nevrast:~/src trythil$ jruby fastercsv_test.rb 
[]

The script produces identical output if :row_sep is explicitly specified:

nevrast:~/src trythil$ cat fastercsv_test_rowsep.rb 
require 'rubygems'
require 'fastercsv'

str = "a,b,c,d\ne,f,g,h"
puts FasterCSV.parse(str, :row_sep => "\n").inspect

nevrast:~/src trythil$ ruby fastercsv_test_rowsep.rb 
[["a", "b", "c", "d"], ["e", "f", "g", "h"]]
nevrast:~/src trythil$ jruby fastercsv_test_rowsep.rb 
[["a", "b", "c", "d"], ["e", "f", "g", "h"]]


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to