You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
string format with 'n' failling with french locales #77652
bpo-33954: float.format('n') fails with _PyUnicode_CheckConsistency assertion error for locales with non-ascii thousands separator
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2020-01-12.02:29:51.342>created_at=<Date2018-05-12.11:30:06.384>labels= ['extension-modules', '3.8', 'type-bug', '3.7']
title="string format with 'n' failling with french locales"updated_at=<Date2020-01-12.02:29:51.341>user='https://bugs.python.org/DavidVasseur'
Activity
DavidVasseur commentedon May 12, 2018
ericvsmith commentedon May 13, 2018
After locale.setlocale(locale.LC_ALL, ''), what does local.localeconv() return?
DavidVasseur commentedon May 13, 2018
>>> locale.localeconv() {'int_curr_symbol': 'EUR ', 'currency_symbol': '€', 'mon_decimal_point': ',', 'mon_thousands_sep': '\u202f', 'mon_grouping': [3, 0], 'positive_sign': '', 'negative_sign': '-', 'int_frac_digits': 2, 'frac_digits': 2, 'p_cs_precedes': 0, 'p_sep_by_space': 1, 'n_cs_precedes': 0, 'n_sep_by_space': 1, 'p_sign_posn': 1, 'n_sign_posn': 1, 'decimal_point': ',', 'thousands_sep': '\u202f', 'grouping': [3, 0]}Licht-T commentedon May 14, 2018
I am working on this and have found why this is happening.
I'll make PR in few days.