Socket.pack_sockaddr_in is broken on linux
------------------------------------------

                 Key: JRUBY-3862
                 URL: http://jira.codehaus.org/browse/JRUBY-3862
             Project: JRuby
          Issue Type: Bug
         Environment: Linux
            Reporter: Aman Gupta
            Assignee: Thomas E Enebo


fine on osx:

{noformat}
$ uname -a
Darwin dddd 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; 
root:xnu-1228.12.14~1/RELEASE_I386 i386 i386 iMac8,1 Darwin

$ ruby -r socket -e' p Socket.pack_sockaddr_in(80,"1.2.3.4") '
"\020\002\000P\001\002\003\004\000\000\000\000\000\000\000\000"

$ jruby -v
jruby 1.4.0dev (ruby 1.8.7p174) (2009-08-05 99e5740) (Java HotSpot(TM) Client 
VM 1.5.0_19) [i386-java]

$ jruby -r socket -e' p Socket.pack_sockaddr_in(80,"1.2.3.4") '
"\020\002\000P\001\002\003\004\000\000\000\000\000\000\000\000"
{noformat}

broken on linux:

{noformat}
$ uname -a
Linux sss 2.6.30 #1 SMP Thu Jul 2 20:57:54 PDT 2009 x86_64 GNU/Linux

$ jruby -v
jruby 1.4.0dev (ruby 1.8.7p174) (2009-08-05 99e5740) (Java HotSpot(TM) 64-Bit 
Server VM 1.5.0_17) [amd64-java]

$ ruby -r socket -e' p Socket.pack_sockaddr_in(80,"1.2.3.4") '
"\002\000\000P\001\002\003\004\000\000\000\000\000\000\000\000"

$ jruby -r socket -e' p Socket.pack_sockaddr_in(80,"1.2.3.4") '
"\020\002\000P\001\002\003\004\000\000\000\000\000\000\000\000"
{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