[1.9] ChannelStream doesn't handle multibyte characters from ungetc properly
----------------------------------------------------------------------------

                 Key: JRUBY-5465
                 URL: http://jira.codehaus.org/browse/JRUBY-5465
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules, Ruby 1.9
    Affects Versions: JRuby 1.6RC1
            Reporter: David Calavera
            Priority: Critical


ChannelStream always casts the character from ungetc to a byte. This doesn't 
work for multibyte characters and returns unexpected results.

We can get an example of this in a spec for IO#readpartial:

https://github.com/rubyspec/rubyspec/issues#issue/41

-- 
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


Reply via email to