This is the mail archive of the libc-locales@sourceware.org mailing list for the GNU libc locales project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: locale pt_BR


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]