Le 06/09/2011 17:17, Éric Araujo a écrit :
Le 06/09/2011 00:11, victor.stinner a écrit :
http://hg.python.org/cpython/rev/56ab3257ca13
changeset:   72296:56ab3257ca13
user:        Victor Stinner<victor.stin...@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 _distutils_pkg_info(self):
          tmp = self._distutils_setup_py_pkg()
-        self.write_file([tmp, 'PKG-INFO'], '')
+        self.write_file([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?

This patch is just cosmetic: it doesn't change anything (except that TextIOWrapper doesn't have to change temporary the locale to get the locale encoding).

Victor
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to