Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Build break - commaizenumber
On Tue, Mar 15, 2011 at 04:09:21PM +0100, Joerg Sonnenberger wrote:
> In addition, the thousand separator is a locale specific concept, many
> locales don't set one. Try
>
> #include <locale.h>
> #include <stdio.h>
>
> int main(void)
> {
> setlocale(LC_ALL, "");
> printf("%'d\n", 8000000);
> }
>
> Compare LC_ALL=C and LC_ALL=pt_BR.ISO8859-1.
Well, in that case we need the commaize_number function anyway.
eric
Home |
Main Index |
Thread Index |
Old Index