[Python-Dev] [Python-checkins] cpython: Issue #9561: packaging now writes egg-info files using UTF-8 (original) (raw)
Éric Araujo merwok at netwok.org
Tue Sep 6 17:17:47 CEST 2011
- Previous message: [Python-Dev] bigmemtests for really big memory too slow
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #9561: packaging now writes egg-info files using UTF-8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le 06/09/2011 00:11, victor.stinner a écrit :
http://hg.python.org/cpython/rev/56ab3257ca13 changeset: 72296:56ab3257ca13 user: Victor Stinner <victor.stinner at haypocalc.com> date: Tue Sep 06 00:11:13 2011 +0200 summary: Issue #9561: packaging now writes egg-info files using UTF-8
instead of the locale encoding
def distutilspkginfo(self): tmp = self.distutilssetuppypkg() - self.writefile([tmp, 'PKG-INFO'], '') + self.writefile([tmp, 'PKG-INFO'], '', encoding='UTF-8')
This function is writing an empty string; isn’t it the same bytes in UTF-8 or in the locale encoding? (Are there people that use encodings with BOMs as locale? shudders)
- Previous message: [Python-Dev] bigmemtests for really big memory too slow
- Next message: [Python-Dev] [Python-checkins] cpython: Issue #9561: packaging now writes egg-info files using UTF-8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]