[Distutils] PEP 376 comments

Sridhar Ratnakumar sridharr at activestate.com
Tue Jun 9 00:18:37 CEST 2009


On 09-06-08 01:48 PM, Ronald Oussoren wrote:
>
> On 8 Jun, 2009, at 10:36, Sridhar Ratnakumar wrote:
>
>> On 09-06-08 02:58 AM, Tarek Ziadé wrote:
>>>> >
>>>> >  * Should the PEP specify the encoding of text-files? PEP314
>>>> doesn't seem to specify the encoding of PKG-INFO files, which can
>>>> cause problems when a field contains data that isn't ASCII.
>>>
>>> The encoding used is utf-8 since 2.6.  I think we should rather update
>>> PEP 314, and mention it in the upcoming PEP 345 as well,
>>
>> For the python-wifi-0.3.1 package, I noticed that PKG-INFO uses
>> 'latin1' encoding.
>
> Not quite.

In this particular package, yes.. but not generally of course.

> My best guess is that it doesn't use any encoding, it just
> dumps the bytes in the string you specified in the PKG-INFO file (at
> least for python2, I haven't checked what distutils does in python3).

Correct; that is what I thought. Tarek said "The encoding used is utf-8 
since 2.6" .. for which I provided this counter-example (python-wifi-0.3.1).


More information about the Distutils-SIG mailing list