mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00
* io.c (rb_io_set_pos): add rdoc about textmode.
* test/ruby/test_io.rb (TestIO#test_setpos): use binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
475422fac6
commit
d74ccf8fc1
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Feb 27 20:43:05 2012 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* 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@iDaemons.org>
|
||||
|
||||
* string.c (rb_str_crypt): Update rdoc and state that this
|
||||
|
|
2
io.c
2
io.c
|
@ -1437,6 +1437,8 @@ rb_io_seek_m(int argc, VALUE *argv, VALUE io)
|
|||
* 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue