Author mark.dickinson
Recipients mark.dickinson, skrah
Date 2009-12-17.21:02:04
SpamBayes Score 2.47099e-08
Marked as misclassified No
Message-id <1261083727.3.0.57477021448.issue7442@psf.upfronthosting.co.za>
In-reply-to
Content
I'm failing to reproduce this (with py3k) on OS X:

Python 3.2a0 (py3k:76866:76867, Dec 17 2009, 09:19:26) 
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> from decimal import *
>>> locale.setlocale(locale.LC_NUMERIC, 'fi_FI')
'fi_FI'
>>> format(Decimal('1000'), 'n')
'1.000'

The locale command, from the same Terminal prompt, gives me:

LANG="en_IE.UTF-8"
LC_COLLATE="en_IE.UTF-8"
LC_CTYPE="en_IE.UTF-8"
LC_MESSAGES="en_IE.UTF-8"
LC_MONETARY="en_IE.UTF-8"
LC_NUMERIC="en_IE.UTF-8"
LC_TIME="en_IE.UTF-8"
LC_ALL=

Just to be clear, is is true that you still get the same result without 
involving Decimal at all?  That is, am I correct in assuming that:

>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, 'fi_FI')
'fi_FI'
>>> locale.localeconv()

also gives you that ValueError?
History
Date User Action Args
2009-12-17 21:02:07mark.dickinsonsetrecipients: + mark.dickinson, skrah
2009-12-17 21:02:07mark.dickinsonsetmessageid: <1261083727.3.0.57477021448.issue7442@psf.upfronthosting.co.za>
2009-12-17 21:02:04mark.dickinsonlinkissue7442 messages
2009-12-17 21:02:04mark.dickinsoncreate