ruby-changes:10555
From: akr <ko1@a...>
Date: Sat, 7 Feb 2009 21:04:37 +0900 (JST)
Subject: [ruby-changes:10555] Ruby:r22110 (ruby_1_8): add not about IO#pos and IO#readpartial.
akr 2009-02-07 21:04:31 +0900 (Sat, 07 Feb 2009) New Revision: 22110 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22110 Log: add not about IO#pos and IO#readpartial. Modified files: branches/ruby_1_8/io.c Index: ruby_1_8/io.c =================================================================== --- ruby_1_8/io.c (revision 22109) +++ ruby_1_8/io.c (revision 22110) @@ -1351,6 +1351,9 @@ * The later means that readpartial is nonblocking-flag insensitive. * It blocks on the situation IO#sysread causes Errno::EAGAIN as if the fd is blocking mode. * + * Since readpartial bypass internal stdio buffering mechanism, + * IO#pos may return wrong value after readpartial. + * This problem is fixed by Ruby 1.9 which doesn't use stdio. */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/