[New-bugs-announce] [issue10083] locale.currency() uses different formatting than system locale for negative values

Bram Mariën report at bugs.python.org
Wed Oct 13 12:36:27 CEST 2010


New submission from Bram Mariën <bram.marien at gmail.com>:

On Windows Vista and Windows 7 (XP and Ubuntu seem ok):

If the system locale is used (using locale.setlocale(LC_ALL, '') and the system locale is set to dutch belgium: 
If the regional options are set to format negative monetary items as "<EURO sign> -<value>", than locale.currency(value) will format it as "<EURO sign)value-".

Other formatting options works ok: e.g. if the regional settings display negative monetary items as "(value)", than "locale.currency(value)" will also display "{value)".

Reproducable on Python 2.6.x, 2.7.x and 3.1.2 on Windows Vista (32 bit)

----------
components: Windows
files: locale_currency_negative.JPG
messages: 118509
nosy: bram.marien
priority: normal
severity: normal
status: open
title: locale.currency() uses different formatting than system locale for negative values
type: behavior
versions: Python 2.6, Python 2.7, Python 3.1
Added file: http://bugs.python.org/file19213/locale_currency_negative.JPG

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10083>
_______________________________________


More information about the New-bugs-announce mailing list