This is the mail archive of the
libc-locales@sourceware.org
mailing list for the GNU libc locales project.
Re: locale pt_BR
- From: Euler Taveira de Oliveira <euler at timbira dot com>
- To: Antonio Prado <suporte at antonioprado dot eti dot br>
- Cc: libc-locales at sources dot redhat dot com
- Date: Tue, 24 Oct 2006 00:09:56 -0200
- Subject: Re: locale pt_BR
- References: <1161259083.5203.17.camel@localhost>
Antonio Prado escreveu:
> Locale pt_BR groups through the property grouping?
>
This is not a glibc bug.
> I am trying to format one string using locale but I am not having
> success with the property grouping.
>
> >>>locale.setlocale(locale.LC_ALL, '')
> 'pt_BR.UTF-8'
>
> >>>locale.format("%.2f", 12345678.1, True)
> '12345678,10'
>
> It would have:
> '12.345.678,10'
>
>
> I use Python and Linux/Ubuntu.
>
What's your Python version? 2.4? Try 2.5 [1], locale.currency()
function.
[1] http://docs.python.org/lib/module-locale.html
--
Euler Taveira de Oliveira
http://www.timbira.com/