[New-bugs-announce] [issue33471] string format with 'n' failling with french locales
David Vasseur
report at bugs.python.org
Sat May 12 07:30:06 EDT 2018
New submission from David Vasseur <dvasseur at gmail.com>:
Python 3.6.5 (default, Apr 14 2018, 13:17:30)
[GCC 7.3.1 20180406] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> print('{:n}'.format(int(12)))
12 <-- ok --
>>> import locale
>>> locale.setlocale(locale.LC_ALL, '')
'fr_FR.UTF-8'
>>> print('{:n}'.format(int(12)))
(empty) <-- error --
'{:n}'.format(int(12))
'Àæ' <-- error --
please note that with >999 numbers, it's working fine:
>>> print('{:n}'.format(int(1000)))
1 000 <-- ok --
----------
components: Extension Modules
messages: 316426
nosy: David Vasseur
priority: normal
severity: normal
status: open
title: string format with 'n' failling with french locales
type: behavior
versions: Python 3.6
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33471>
_______________________________________
More information about the New-bugs-announce
mailing list