[Distutils] PEP 376 comments

Ronald Oussoren ronaldoussoren at mac.com
Mon Jun 8 22:48:09 CEST 2009


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. 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).

Ronald


More information about the Distutils-SIG mailing list