New submission from David Vasseur <dvass...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue33471> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com