String#unpack("Ux") does not handle multi-bytes correctly ---------------------------------------------------------
Key: JRUBY-1454 URL: http://jira.codehaus.org/browse/JRUBY-1454 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.0.1 Reporter: Tom Quellenberg Attachments: patch.txt A call of b.unpack("U2") should return two characters, but returns only one. # three characters 'รค' b = [0xC3,0xA4, 0xC3,0xA4, 0xC3,0xA4].pack("C*") # should result in two charachters, currently 1 b.unpack("U2") A patch which solves the problem is attached -- 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