[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-22 Thread STINNER Victor


STINNER Victor  added the comment:

> AVAILABLE_TARGETS = ['C.UTF-8']

Aha, that's something new in FreeBSD. In FreeBSD 11.2, this locale is invalid. 
The locale has been added to FreeBSD CURRENT (future FreeBSD 12) at November 4:
https://reviews.freebsd.org/D17833

See discussion on freebsd-current:

http://freebsd.1045724.x6.nabble.com/C-UTF-8-as-default-locale-td6292359.html

So it's unrelated to my change, but it's a bug in test_c_locale_coercion on 
FreeBSD 12.

--
nosy: +ncoghlan

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-22 Thread STINNER Victor


STINNER Victor  added the comment:

Result of the additional debug info, on the FreeBSD CURRENT buildbot:

AVAILABLE_TARGETS = ['C.UTF-8']
EXPECTED_C_LOCALE_EQUIVALENTS = ['C', 'invalid.ascii']
EXPECTED_C_LOCALE_STREAM_ENCODING = 'ascii'
EXPECTED_C_LOCALE_FS_ENCODING = 'ascii'
EXPECT_COERCION_IN_DEFAULT_LOCALE = True
_C_UTF8_LOCALES = ('C.UTF-8', 'C.utf8', 'UTF-8')
_check_nl_langinfo_CODESET = True

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-21 Thread STINNER Victor


STINNER Victor  added the comment:


New changeset 7c2d5702d11b41dd9a2391e6813fbaef5dbda79a by Victor Stinner in 
branch 'master':
bpo-35290: Add debug info to test_c_locale_coercion (GH-10631)
https://github.com/python/cpython/commit/7c2d5702d11b41dd9a2391e6813fbaef5dbda79a


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-21 Thread STINNER Victor


Change by STINNER Victor :


--
keywords: +patch
pull_requests: +9879
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35290] [FreeBSD] test_c_locale_coercion: fsencoding is ASCII instead of UTF-8 on FreeBSD CURRENT buildbot

2018-11-21 Thread STINNER Victor


New submission from STINNER Victor :

It seems like the commit 02e6bf7f2025cddcbde6432f6b6396198ab313f4 (bpo-28604) 
broke test_c_locale_coercion on FreeBSD CURRENT Shared 3.x:

https://buildbot.python.org/all/#/builders/168/builds/247

0:19:33 load avg: 7.69 [401/419/2] test_c_locale_coercion failed -- running: 
test_decimal (40 sec 626 ms), test_lib2to3 (2 min 3 sec)
test_external_target_locale_configuration 
(test.test_c_locale_coercion.LocaleConfigurationTests) ... ok
test_LC_ALL_set_to_C (test.test_c_locale_coercion.LocaleCoercionTests) ... ok
test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) ... 
test_PYTHONCOERCECLOCALE_not_zero 
(test.test_c_locale_coercion.LocaleCoercionTests) ... 
test_PYTHONCOERCECLOCALE_set_to_warn 
(test.test_c_locale_coercion.LocaleCoercionTests) ... 
test_PYTHONCOERCECLOCALE_set_to_zero 
(test.test_c_locale_coercion.LocaleCoercionTests) ... ok

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (default_locale=True, 
PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 341, in _check_c_locale_coercion
self._check_child_encoding_details(base_var_dict,
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 231, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''}
- {'fsencoding': 'ascii',
? ^

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

   'lang': '',
   'lc_all': '',
   'lc_ctype': 'c.utf-8',
   'stderr_info': 'utf-8:backslashreplace',
   'stdin_info': 'utf-8:surrogateescape',
   'stdout_info': 'utf-8:surrogateescape'}

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (env_var='LANG', 
nominal_locale='C', PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 356, in _check_c_locale_coercion
self._check_child_encoding_details(var_dict,
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 231, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'utf-8:surrogateesc[131 
chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[131 
chars]: ''}
- {'fsencoding': 'ascii',
? ^

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

   'lang': 'c',
   'lc_all': '',
   'lc_ctype': 'c.utf-8',
   'stderr_info': 'utf-8:backslashreplace',
   'stdin_info': 'utf-8:surrogateescape',
   'stdout_info': 'utf-8:surrogateescape'}

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (env_var='LC_CTYPE', 
nominal_locale='C', PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 356, in _check_c_locale_coercion
self._check_child_encoding_details(var_dict,
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 231, in _check_child_encoding_details
self.assertEqual(encoding_details, expected_details)
AssertionError: {'fsencoding': 'ascii', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''} != {'fsencoding': 'utf-8', 'stdin_info': 'utf-8:surrogateesc[130 
chars]: ''}
- {'fsencoding': 'ascii',
? ^

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

   'lang': '',
   'lc_all': '',
   'lc_ctype': 'c.utf-8',
   'stderr_info': 'utf-8:backslashreplace',
   'stdin_info': 'utf-8:surrogateescape',
   'stdout_info': 'utf-8:surrogateescape'}

==
FAIL: test_PYTHONCOERCECLOCALE_not_set 
(test.test_c_locale_coercion.LocaleCoercionTests) (env_var='LANG', 
nominal_locale='invalid.ascii', PYTHONCOERCECLOCALE=None)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/python/3.x.koobs-freebsd-current/build/Lib/test/test_c_locale_coercion.py",
 line 356, in _check_c_locale_coercion