StringIO#pos= + StringIO#read(n) does not work properly after EOF
-----------------------------------------------------------------
Key: JRUBY-4683
URL: http://jira.codehaus.org/browse/JRUBY-4683
Project: JRuby
Issue Type: Bug
Components: Extensions
Affects Versions: JRuby 1.4
Environment:
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM)
Client VM 1.6.0_16) [i386-java]
Reporter: Hiroshi Nakamura
{noformat}
% ruby -rstringio -ve 's = StringIO.new("123"); s.read; s.pos = 0; p s.read(3)'
ruby 1.8.8dev (2010-03-30 revision 27031) [i686-linux]
"123"
% ~/java/jruby-1.4.0/bin/jruby -rstringio -ve 's = StringIO.new("123"); s.read;
s.pos = 0; p s.read(3)'
jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM)
Client VM 1.6.0_16) [i386-java]
nil
{noformat}
Patch follows.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email