String#unpack invalid output
----------------------------

                 Key: JRUBY-3353
                 URL: http://jira.codehaus.org/browse/JRUBY-3353
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: jruby 1.2.0 (ruby 1.8.6 patchlevel 287) (2009-02-01 rev ) 
[amd64-java]

            Reporter: qwert666
             Fix For: JRuby 1.2


There`s some problems with the S s formats in unpack
*jruby*
{noformat} 
[0,-128].pack('C*').unpack('s')
=> [128]
[0,-128].pack('C*').unpack('s')
=> [128]
{noformat} 
*cruby*
{noformat} 
[0,-128].pack('C*').unpack('s')"
=> [-32768]
[0,-128].pack('C*').unpack('S')"
=> [32768]
{noformat} 

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