[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-21 Thread STINNER Victor
STINNER Victor added the comment: It seems like my change introduced a regression: bpo-35290. -- ___ Python tracker ___ ___

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset df3051b53fd7f2862a4087f5449e811d8421347a by Victor Stinner in branch '3.6': bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606) (GH-10619) (GH-10621)

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9869 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6eff6b8eecd7a8eccad16419269fa18ec820922e by Victor Stinner in branch '3.7': bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606) (GH-10619) https://github.com/python/cpython/commit/6eff6b8eecd7a8eccad16419269fa18ec820922e

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +9867 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
STINNER Victor added the comment: New changeset 02e6bf7f2025cddcbde6432f6b6396198ab313f4 by Victor Stinner in branch 'master': bpo-28604: Fix localeconv() for different LC_MONETARY (GH-10606) https://github.com/python/cpython/commit/02e6bf7f2025cddcbde6432f6b6396198ab313f4 --

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
Change by STINNER Victor : -- versions: +Python 3.8 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
STINNER Victor added the comment: I tested manually PR 10606: LC_ALL= LC_CTYPE=xxx LC_MONETARY=xxx ./python -c 'import locale; locale.setlocale(locale.LC_ALL, ""); print(ascii(locale.localeconv()["currency_symbol"]))' '\xa3' Result (bug = result/error without the fix): * LC_CTYPE=en_GB,

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-33954: float.__format__('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator. It may be nice to fix these two bugs at the same times, since they are related :-) --

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +9849 stage: -> patch review ___ Python tracker ___ ___

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-11-20 Thread STINNER Victor
STINNER Victor added the comment: Example of the bug: import locale # LC_CTYPE: latin1 encoding locale.setlocale(locale.LC_ALL, "en_GB") # LC_MONETARY: utf8 encoding locale.setlocale(locale.LC_MONETARY, "ar_SA.UTF-8") lc = locale.localeconv() for attr in ( "mon_grouping",

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-10-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28604] Exception raised by python3.5 when using en_GB locale

2018-09-24 Thread Petr Viktorin
Change by Petr Viktorin : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28604] Exception raised by python3.5 when using en_GB locale

2017-09-30 Thread Andreas Schwab
Andreas Schwab added the comment: This causes test_float.py to fail with glibc > 2.26. ERROR: test_float_with_comma (__main__.GeneralFloatCases) -- Traceback (most recent call last): File

[issue28604] Exception raised by python3.5 when using en_GB locale

2016-11-04 Thread Charalampos Stratakis
Changes by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___

[issue28604] Exception raised by python3.5 when using en_GB locale

2016-11-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I suspect this issue is similar to issue25812. en_GB has non-ut8 encoding (likely iso8859-1). Currency symbol £ is encoded with this encoding as b'\xa3'. But Python tries to decode b'\xa3' with an encoding determined by other locale setting (LC_CTYPE).

[issue28604] Exception raised by python3.5 when using en_GB locale

2016-11-03 Thread Guillaume Pasquet (Etenil)
New submission from Guillaume Pasquet (Etenil): This issue was originally reported on Fedora's Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1391280 Description of problem: After switching the monetary locale to en_GB, python then raises an exception when calling locale.localeconv()