This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, mark.dickinson, mrabarnett, r.david.murray, skrah
Date 2009-12-02.00:05:56
SpamBayes Score 2.7089442e-08
Marked as misclassified No
Message-id <1259712358.42.0.0697426569335.issue7327@psf.upfronthosting.co.za>
In-reply-to
Content
In 2.7, I get:

$ ./python.exe 
Python 2.7a0 (trunk:76501, Nov 24 2009, 14:57:21) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.setlocale(locale.LC_NUMERIC, "cs_CZ.UTF-8")
'cs_CZ.UTF-8'
>>> from decimal import Decimal
>>> s = format(Decimal("-1.5"),  ' 019.18n')
>>> s
'-0 000 000 000 001,5'
>>> len(s)
20
>>> s = format(Decimal("-1.5"),  u' 019.18n')                           
>>> s
u'-0 000 000 000 001,5'
>>> len(s)
20
>>> 

Could you give more details on the UnicodeDecodeError you get? Any
traceback?
History
Date User Action Args
2009-12-02 00:05:58eric.smithsetrecipients: + eric.smith, mark.dickinson, mrabarnett, r.david.murray, skrah
2009-12-02 00:05:58eric.smithsetmessageid: <1259712358.42.0.0697426569335.issue7327@psf.upfronthosting.co.za>
2009-12-02 00:05:57eric.smithlinkissue7327 messages
2009-12-02 00:05:56eric.smithcreate