[flac-dev] [PATCH] don't always call setlocale() on Windows

Erik de Castro Lopo mle+la at mega-nerd.com
Sat Jul 19 01:23:34 PDT 2014

lvqcl wrote:

> Windows (MSVC, MinGW) version of setlocale don't care about LC_*
> environment variables. For example, flac cannot pass the test for
> --until and --skip options the script calls it with --skip=0:01.1001
> and it expects decimal comma (--skip=0:01,1001) on my system.
> One solution is to write a local version of strtod that always accepts
> both decimal comma and decimal point.
> Another solution is not to call setlocale(LC_ALL, "") if some
> LC_* variable is set to "C". The patch is attached.

Applied. Thanks.

Erik de Castro Lopo

More information about the flac-dev mailing list