ruby-changes:22785
From: usa <ko1@a...>
Date: Mon, 27 Feb 2012 20:46:55 +0900 (JST)
Subject: [ruby-changes:22785] usa:r34834 (trunk): * io.c (rb_io_set_pos): add rdoc about textmode.
usa 2012-02-27 20:46:43 +0900 (Mon, 27 Feb 2012) New Revision: 34834 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34834 Log: * io.c (rb_io_set_pos): add rdoc about textmode. * test/ruby/test_io.rb (TestIO#test_setpos): use binmode. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 34833) +++ ChangeLog (revision 34834) @@ -1,3 +1,9 @@ +Mon Feb 27 20:43:05 2012 NAKAMURA Usaku <usa@r...> + + * io.c (rb_io_set_pos): add rdoc about textmode. + + * test/ruby/test_io.rb (TestIO#test_setpos): use binmode. + Mon Feb 27 17:00:15 2012 Akinori MUSHA <knu@i...> * string.c (rb_str_crypt): Update rdoc and state that this Index: io.c =================================================================== --- io.c (revision 34833) +++ io.c (revision 34834) @@ -1437,6 +1437,8 @@ * ios.pos = integer -> integer * * Seeks to the given position (in bytes) in <em>ios</em>. + * It is not guranteed that seeking to the right position when <em>ios</em> + * is textmode. * * f = File.new("testfile") * f.pos = 17 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/