]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #9561: packaging now writes egg-info files using UTF-8
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 5 Sep 2011 22:11:13 +0000 (00:11 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 5 Sep 2011 22:11:13 +0000 (00:11 +0200)
instead of the locale encoding

Lib/packaging/tests/test_util.py
Misc/NEWS

index 5e804c27a61d7925787fb16a0682755a95d48379..c3d91aa05984a1e5db67bf4fc1a6a5098fe76b53 100644 (file)
@@ -946,7 +946,7 @@ class PackagingLibChecks(support.TempdirManager,
 
     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')
         return tmp
 
     def _setup_cfg_with_no_metadata_pkg(self):
@@ -971,7 +971,7 @@ class PackagingLibChecks(support.TempdirManager,
 
     def _pkg_info_with_no_distutils(self):
         tmp = self._random_setup_py_pkg()
-        self.write_file([tmp, 'PKG-INFO'], '')
+        self.write_file([tmp, 'PKG-INFO'], '', encoding='UTF-8')
         return tmp
 
     def _random_setup_py_pkg(self):
index bf35d9c389f75d0c73ea477f0ea34e5c2c281935..fbcdb8d1989e11088e6bb0cb793fdc218a2a7b46 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -271,7 +271,7 @@ Core and Builtins
 Library
 -------
 
-- Issue #9561: distutils now reads and writes egg-info files using UTF-8,
+- Issue #9561: distutils and packaging now writes egg-info files using UTF-8,
   instead of the locale encoding.
 
 - Issue #8286: The distutils command sdist will print a warning message instead