Package: ruby1.8 Version: 1.8.5-4 Severity: normal
ri Socket.gethostbyname implies that ruby -rsocket -e 'p Socket.gethostbyname("127.0.0.1")' should return something like: ["localhost", ["localloop", "loop", "loghost"], 2, "\177\000\000\001"] as it does on a redhat machine I have access to using ruby 1.8.2 (might be patched). on my machine at least, it returns: ["127.0.0.1", [], 2, "\177\000\000\001"] which is not what I'd like. You can replace 127.0.0.1 with any address you like (obviously, looking up localhost isn't important); I expect that looking up localhost can be done without a connection to the outside network so might fit in a regression test. This used to work, but I haven't paid close attention to changes recently, and the documentation I can find says this should work. Also applies to a version of 1.9 ( 1.9.0+20060609-1 ) I have installed: sr:~/src> ruby1.9 -rsocket -e 'p Socket.gethostbyname("127.0.0.1")' ["127.0.0.1", [], 2, "\177\000\000\001"] sr:~/src> ruby1.9 --version ruby 1.9.0 (2006-06-08) [i486-linux] sr:~/src> ruby1.6 -rsocket -e 'p Socket.gethostbyname("127.0.0.1")' ["localhost.localdomain", ["localhost"], 2, "\177\000\000\001"] In the meantime, I guess I'll use resolv. -neil -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.4.27-2-386 Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1) Versions of packages ruby1.8 depends on: ii libc6 2.3.6.ds1-11 GNU C Library: Shared libraries ii libruby1.8 1.8.5-4 Libraries necessary to run Ruby 1. ruby1.8 recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]