Hi, 2010/3/6 Run Paint Run Run <runrun / runpaint.org>: > As for #binwrite, I'm also assuming that, at > least on Linux, it's intentionally ignoring the offset, treating it > instead as merely a cue to append. > >>> File.delete('/tmp/offset') #=> 1 >>> File.write('/tmp/offset','ruby') #=> 4 >>> File.write('/tmp/offset','ruby',2) #=> 4 >>> File.size('/tmp/offset') #=> 6 > >>> File.delete('/tmp/offset') #=> 1 >>> File.binwrite('/tmp/offset','ruby') #=> 4 >>> File.binwrite('/tmp/offset','ruby',2) #=> 4 >>> File.size('/tmp/offset') #=> 8 No, it is never intended :-( Fixed. Thanks. # I had used assert instead of assert_equal in the test... -- Yusuke ENDOH <mame / tsg.ne.jp>