p4raw-id: //depot/perl@11895
use Socket;
-print "1..13\n";
+print "1..14\n";
if (socket(T,PF_INET,SOCK_STREAM,6)) {
print "ok 1\n";
print (($addr eq v10.10.10.10) ? "ok 13\n" : "not ok 13\n");
}
+eval { inet_ntoa(v10.20.30.400) };
+print (($@ =~ /^Wide character in Socket::inet_ntoa at/) ? "ok 14\n" : "not ok 14\n");
char * addr_str;
char * ip_address;
if (DO_UTF8(ip_address_sv) && !sv_utf8_downgrade(ip_address_sv, 1))
- croak("Wide character in Socket::ntoa");
+ croak("Wide character in Socket::inet_ntoa");
ip_address = SvPV(ip_address_sv,addrlen);
if (addrlen != sizeof(addr)) {
croak("Bad arg length for %s, length is %d, should be %d",