String#unpack with X pattern is incorrect
-----------------------------------------

                 Key: JRUBY-1780
                 URL: http://jira.codehaus.org/browse/JRUBY-1780
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: Latest JRuby 1.1b1 from trunk.
            Reporter: Vladimir Sizikov
         Attachments: string-unpack-X.patch

In the following example:
{noformat}
"abc".unpack("aaX*a")
{noformat}

MRI 1.8, 1.9, on Win/Linux return:
["a", "b", "b"]

JRuby returns:
["a", "b", "a"]

This also leads to one rubinius spec failure.

The proposed patch (with regression tests) fixes the problem and the test 
failures.

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