[MacRuby] #1128: MacRuby builds broken gems, probably since 1.4.2 update
MacRuby
ruby-noreply at macosforge.org
Mon Feb 7 23:44:54 PST 2011
#1128: MacRuby builds broken gems, probably since 1.4.2 update
------------------------------------+---------------------------------------
Reporter: mrada@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone: MacRuby 1.0
Component: MacRuby | Keywords: 0.9-blocker
------------------------------------+---------------------------------------
Comment(by watson1978@…):
I wrote the string (which was read from file) to new file, new file is
same size with original.
So, I think that there is bug in String#size.
{{{
$ cat test.rb
File.open("file.txt", "rb") {|f|
s = f.read
p s.size
File.open("tmp", "w") {|o|
o.write s
}
}
p File.stat("file.txt").size
$ macruby test.rb
2975
2977
$ ls -l file.txt tmp
-rw-r--r-- 1 watson staff 2977 2 8 16:11 file.txt
-rw-r--r-- 1 watson staff 2977 2 8 16:42 tmp
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1128#comment:5>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list