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 loewis
Recipients amaury.forgeotdarc, baikie, ezio.melotti, jesterKing, lemburg, loewis, r.david.murray, spaun2002, vstinner
Date 2012-05-02.06:25:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335939937.97.0.232425382295.issue9377@psf.upfronthosting.co.za>
In-reply-to
Content
For Windows versions that support it, we could use GetNameInfoW, available on XPSP2+, W2k3+ and Vista+.

The questions then are: what to do about gethostbyaddr, and what to do about the general case?

Since the problem appears to be specific to Windows, it might be appropriate to find a solution to just the Windows case, and ignore the general issue. For gethostbyaddr, decoding would then use CP_ACP.
History
Date User Action Args
2012-05-02 06:25:38loewissetrecipients: + loewis, lemburg, amaury.forgeotdarc, vstinner, baikie, ezio.melotti, r.david.murray, jesterKing, spaun2002
2012-05-02 06:25:37loewissetmessageid: <1335939937.97.0.232425382295.issue9377@psf.upfronthosting.co.za>
2012-05-02 06:25:33loewislinkissue9377 messages
2012-05-02 06:25:33loewiscreate