STINNER Victor <[email protected]> added the comment:
Oh. Another Python function is impacted by the bug, str.format:
$ env -i python3 -c 'import locale; locale.setlocale(locale.LC_ALL, "fr_FR");
locale.setlocale(locale.LC_NUMERIC, "es_MX.utf8"); print(ascii(f"{1000:n}"))'
'1\xe2\x80\x89000'
It should be '1\u2009000' ('1', '\u2009', '000').
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue31900>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com