Wrap some strtod() into setlocale to avoid locale problems
Merge pull request #636 from yurchor/master

Wrap some strtod() into setlocale to avoid locale problems