[issue8963] test_urllibnet failure

Antoine Pitrou report at bugs.python.org
Thu Jun 10 22:44:12 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

In setipaddr() in socketmodule.c, the following line appears to change the current locale when DNS lookup fails:

    error = getaddrinfo(name, NULL, &hints, &res);

This is checked by making a call to setlocale(LC_TIME, NULL) before and after the aforementioned line.

This is with the following libc:
$ rpm -qv glibc
glibc-2.11.1-8mnb2

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8963>
_______________________________________


More information about the Python-bugs-list mailing list