[flac-dev] make fullcheck fails: strtod/atof and locale

lvqcl lvqcl.mail at gmail.com
Sun May 18 02:59:54 PDT 2014

Erik de Castro Lopo wrote:

> Does adding:
>      export LANG=C LC_ALL=C
> to the top of the file test/test_grabbag.sh help?

No. But all tests in test_grabbag.sh passed OK, it's test_flac.sh that fails.
And test_flac.sh already have this 'export' command in the beginning.

I found this page -- http://sourceforge.net/p/mingw-w64/bugs/307/
Quote: "This is not a problem with mingw-w64 but a problem
with setlocale() which we import from MS dlls".
And indeed, flac.exe imports setlocale from MSVCRT.DLL.
So no wonder that it's not fully POSIX compatible and doesn't
care about environment variables.

BTW, FLAC documentation (e.g. http://xiph.org/flac/documentation_tools_flac.html )
doesn't mention the fact that decimal separator is locale-dependent;
IMHO this fact should be mentioned there.

More information about the flac-dev mailing list