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.

Attachment: win_locale.patch
Description: Binary data

_______________________________________________
flac-dev mailing list
flac-dev@xiph.org
http://lists.xiph.org/mailman/listinfo/flac-dev

Reply via email to