This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients ncoghlan, serhiy.storchaka, vstinner
Date 2017-09-29.08:55:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1506675325.41.0.213398074469.issue31631@psf.upfronthosting.co.za>
In-reply-to
Content
$ ./python -m test -vuall test_c_locale_coercion
...

======================================================================
FAIL: test_external_target_locale_configuration (test.test_c_locale_coercion.LocaleConfigurationTests) (env_var='LC_CTYPE', configured_locale='UTF-8')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/serhiy/py/cpython3.7/Lib/test/test_c_locale_coercion.py", line 254, in test_external_target_locale_configuration
    coercion_expected=False)
  File "/home/serhiy/py/cpython3.7/Lib/test/test_c_locale_coercion.py", line 209, in _check_child_encoding_details
    self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'ascii:surrogateesc[128 chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[128 chars]: ''}
- {'fsencoding': 'ascii',
?                 ^^^^^

+ {'fsencoding': 'utf-8',
?                 ^^^^^

   'lang': '',
   'lc_all': '',
   'lc_ctype': 'utf-8',
-  'stderr_info': 'ascii:backslashreplace',
?                  ^^^^^

+  'stderr_info': 'utf-8:backslashreplace',
?                  ^^^^^

-  'stdin_info': 'ascii:surrogateescape',
?                 ^^^^^

+  'stdin_info': 'utf-8:surrogateescape',
?                 ^^^^^

-  'stdout_info': 'ascii:surrogateescape'}
?                  ^^^^^

+  'stdout_info': 'utf-8:surrogateescape'}
?                  ^^^^^


----------------------------------------------------------------------

$ locale   
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=

Similar issue is issue30836.
History
Date User Action Args
2017-09-29 08:55:25serhiy.storchakasetrecipients: + serhiy.storchaka, ncoghlan, vstinner
2017-09-29 08:55:25serhiy.storchakasetmessageid: <1506675325.41.0.213398074469.issue31631@psf.upfronthosting.co.za>
2017-09-29 08:55:25serhiy.storchakalinkissue31631 messages
2017-09-29 08:55:25serhiy.storchakacreate