cvs commit: src/tools/regression/lib/libc/stdio test-printfloat.c test-scanfloat.c

Christoph Mallon christoph.mallon at
Mon Dec 3 02:51:46 PST 2007

Dag-Erling Smørgrav wrote:
> Andrey Chernov <ache at> writes:
>> David Schultz <das at> writes:
>>> test-printfloat is failing on my machine due to the fact that the
>>> default locale in FreeBSD seems to have a thousands separator now.
>>> I thought the default locale wasn't supposed to. Can someone
>>> comment?
>> Default locale don't have thousands separator as you can see:
>> [...]
>> Something wrong in your default locale setup, use LC_ALL=C for sure.
> If a regression test is dependent on a specific locale, it should set
> the locale at startup rather than rely on the system default.

Don't C programs per definition always start in the "C" locale, not 
matter what LC_ALL etc. are set to?

Ah, I just checked the source code: There is a setlocale(LC_NUMERIC, "") 
in there.


More information about the cvs-src mailing list