mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +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
|
@ -155,7 +155,7 @@ def collect_platform(info_add):
|
|||
def collect_locale(info_add):
|
||||
import locale
|
||||
|
||||
info_add('locale.encoding', locale.getpreferredencoding(False))
|
||||
info_add('locale.getencoding', locale.getencoding())
|
||||
|
||||
|
||||
def collect_builtins(info_add):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue