flac and metaflac : Don't always call setlocale() in Windows.
commit865041b7ca1f0a10c536723629ac7d3b9f9a147d
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 19 Jul 2014 08:17:25 +0000 (19 18:17 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 19 Jul 2014 08:17:28 +0000 (19 18:17 +1000)
tree8986e7227cf0eb39ceaa03fcae80db1ac558ceff
parent491475e61aa8a0fcf9cac4f8abe04282b6656d55
flac and metaflac : Don't always call setlocale() in Windows.

Windows (MSVC, MinGW) versions 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 some locales.

Solve this (on Windows) by calling setlocale(LC_ALL, "") if some
LC_* variable is set to "C".

Patch-from: lvqcl <lvqcl.mail@gmail.com>
src/flac/main.c
src/metaflac/main.c