summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 11:46:43 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-27 11:46:43 +0000
commitd74ccf8fc1cc4ce67d0c498a3c963f08ba4b8530 (patch)
treece32a33ec79b94cf1978d4df74d60b4fb26df889 /io.c
parent475422fac63b3a3436dc1af45a471041ca05a611 (diff)
* 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
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index ab1e6e1e1c..f6375cd8db 100644
--- a/io.c
+++ b/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