Bug #1297

Updated by pospelov over 4 years ago

strtod respects locale format, should be made invariant

Otherwise our intensity data files are loaded wrongly on German Locale Linux'es

We have to have our own function to_double,
under which we hide real implementation (strtod, or boost::lexical_cast, or something else) and it should be unit-tested
> "4.3882628771e-313" ==> 4.3882628771e-313
> "3.1e00" ==> 3.1
> etc

See some suggestions here
* https://github.com/JuliaLang/julia/issues/5928
* http://stackoverflow.com/questions/1012571/stdstring-to-float-or-double