mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" (GH-9430)
* Revert "bpo-34589: Add -X coerce_c_locale command line option (GH-9378)" This reverts commitdbdee0073c
. * Revert "bpo-34589: C locale coercion off by default (GH-9073)" This reverts commit7a0791b699
. * Revert "bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)" This reverts commit188ebfa475
.
This commit is contained in:
parent
76531e2e82
commit
06e7608207
17 changed files with 87 additions and 242 deletions
|
@ -656,8 +656,9 @@ class SysModuleTest(unittest.TestCase):
|
|||
|
||||
def c_locale_get_error_handler(self, locale, isolated=False, encoding=None):
|
||||
# Force the POSIX locale
|
||||
env = dict(os.environ)
|
||||
env = os.environ.copy()
|
||||
env["LC_ALL"] = locale
|
||||
env["PYTHONCOERCECLOCALE"] = "0"
|
||||
code = '\n'.join((
|
||||
'import sys',
|
||||
'def dump(name):',
|
||||
|
@ -667,10 +668,7 @@ class SysModuleTest(unittest.TestCase):
|
|||
'dump("stdout")',
|
||||
'dump("stderr")',
|
||||
))
|
||||
args = [sys.executable,
|
||||
"-X", "utf8=0",
|
||||
"-X", "coerce_c_locale=0",
|
||||
"-c", code]
|
||||
args = [sys.executable, "-X", "utf8=0", "-c", code]
|
||||
if isolated:
|
||||
args.append("-I")
|
||||
if encoding is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue