[MacRuby] #1103: csv.rb oddity
MacRuby
ruby-noreply at macosforge.org
Thu Jan 6 19:05:34 PST 2011
#1103: csv.rb oddity
---------------------------------+------------------------------------------
Reporter: percent20@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords: csv
---------------------------------+------------------------------------------
Comment(by watson1978@…):
Thank you, Nagachika-san! Indeed, it works when I use CSV.readlines.
{{{
$ cat test_csv.rb
CSV.readlines('save.csv').each do |row|
puts row[1]
end
$ ruby -v -r csv test_csv.rb
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
Smith
Smith
Smith
$ ruby19 -v -r csv test_csv.rb
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.5.0]
Smith
Smith
Smith
$ macruby -v -r csv test_csv.rb
MacRuby 0.9 (ruby 1.9.2) [universal-darwin10.0, x86_64]
Smith
Smith
Smith
}}}
I watched a CSV library, but was about the same with CRuby1.9.2. (By
encoding relations, there was a difference slightly.)
--
Ticket URL: <http://www.macruby.org/trac/ticket/1103#comment:3>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list