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

lvqcl lvqcl.mail at gmail.com
Sat Jul 19 00:48:47 PDT 2014

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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: win_locale.patch
Type: application/octet-stream
Size: 1121 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/flac-dev/attachments/20140719/2c536160/attachment.obj 

More information about the flac-dev mailing list