homepage

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 mcepl
Recipients Jan Niklas Hasse, abarry, akira, barry, deleted250130, ezio.melotti, lemburg, mcepl, methane, ncoghlan, ned.deily, r.david.murray, ronaldoussoren, vstinner, xdegaye, yan12125
Date 2020年03月21日.12:47:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1584794836.28.0.0452113449138.issue28180@roundup.psfhosted.org>
In-reply-to
Content
I have tried to port this patch to Python 3.4 (still maintained by SUSE on SLE-12), but I have the hardest time to debug this. All affected tests end with errors like this:
[ 493s] ======================================================================
[ 493s] FAIL: test_test_PYTHONCOERCECLOCALE_not_set (test.test_c_locale_coercion.LocaleCoercionTests) (PYTHONCOERCECLOCALE=None, env_var='LC_CTYPE', nominal_locale='invalid.ascii')
[ 493s] ----------------------------------------------------------------------
[ 493s] Traceback (most recent call last):
[ 493s] File "/home/abuild/rpmbuild/BUILD/Python-3.4.10/Lib/test/test_c_locale_coercion.py", line 326, in _check_c_locale_coercion
[ 493s] coercion_expected)
[ 493s] File "/home/abuild/rpmbuild/BUILD/Python-3.4.10/Lib/test/test_c_locale_coercion.py", line 219, in _check_child_encoding_details
[ 493s] self.assertEqual(encoding_details, expected_details)
[ 493s] AssertionError: {'fse[79 chars]cii:strict', 'stderr_info': 'ascii:backslashre[45 chars]ict'} != {'fse[79 chars]cii:surrogateescape', 'stderr_info': 'ascii:ba[63 chars]ape'}
[ 493s] {'fsencoding': 'ascii',
[ 493s] 'lang': '',
[ 493s] 'lc_all': '',
[ 493s] 'lc_ctype': 'invalid.ascii',
[ 493s] 'stderr_info': 'ascii:backslashreplace',
[ 493s] - 'stdin_info': 'ascii:strict',
[ 493s] ? ^^ ^
[ 493s] 
[ 493s] + 'stdin_info': 'ascii:surrogateescape',
[ 493s] ? ++++++ ^^^ ^^^
[ 493s] 
[ 493s] - 'stdout_info': 'ascii:strict'}
[ 493s] ? ^^ ^
[ 493s] 
[ 493s] + 'stdout_info': 'ascii:surrogateescape'}
[ 493s] ? ++++++ ^^^ ^^^
yes, it is always a conflict between strict and surrogateescape. I probably don’t have time to finish debugging this, so I am just leaving this for posterity.
History
Date User Action Args
2020年03月21日 12:47:16mceplsetrecipients: + mcepl, lemburg, barry, ronaldoussoren, ncoghlan, vstinner, ned.deily, ezio.melotti, r.david.murray, methane, akira, deleted250130, xdegaye, yan12125, abarry, Jan Niklas Hasse
2020年03月21日 12:47:16mceplsetmessageid: <1584794836.28.0.0452113449138.issue28180@roundup.psfhosted.org>
2020年03月21日 12:47:16mcepllinkissue28180 messages
2020年03月21日 12:47:16mceplcreate

AltStyle によって変換されたページ (->オリジナル) /