This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author baikie
Recipients baikie
Date 2010-08-22.18:25:58
SpamBayes Score 3.210224e-08
Marked as misclassified No
Message-id <1282501562.64.0.000983913636939.issue9660@psf.upfronthosting.co.za>
In-reply-to
Content
The protocol and service/port number databases are typically
implemented as text files on Unix and can contain non-ASCII names
in any encoding (presumably for local services), but the socket
module tries to decode them as strict UTF-8.  In particular,
getservbyport() and getnameinfo() will raise UnicodeError when
this fails.

Attached is a patch for 3.2 to use the file system encoding and
surrogateescape handler instead, in line with PEP 383.  This is
what Python already does for the passwd and group databases, and
it will allow protocol and service names to be given correctly as
command line arguments.
History
Date User Action Args
2010-08-22 18:26:02baikiesetrecipients: + baikie
2010-08-22 18:26:02baikiesetmessageid: <1282501562.64.0.000983913636939.issue9660@psf.upfronthosting.co.za>
2010-08-22 18:26:00baikielinkissue9660 messages
2010-08-22 18:25:59baikiecreate