mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Issue #9561: packaging now writes egg-info files using UTF-8
instead of the locale encoding
This commit is contained in:
parent
e01aa53ea6
commit
d4d8ae5a42
2 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue