mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-91156: Use locale.getencoding()
instead of getpreferredencoding (GH-91732)
Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
parent
efe7fd4170
commit
1317b70f89
14 changed files with 29 additions and 44 deletions
|
@ -216,7 +216,7 @@ class CmdLineTest(unittest.TestCase):
|
|||
code = (
|
||||
b'import locale; '
|
||||
b'print(ascii("' + undecodable + b'"), '
|
||||
b'locale.getpreferredencoding())')
|
||||
b'locale.getencoding())')
|
||||
p = subprocess.Popen(
|
||||
[sys.executable, "-c", code],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue