Menu

Locale problems when reading config

emu
2012-09-16
2013-05-17
  • emu

    emu - 2012-09-16

    Hello,

    I had trouble running any of the example, and it was caused just by bad reading of the config files, specifically decimal point/comma issue. Czech locale uses decimal commas.

    My opinion is that independently of system settings, the library should expect decimal point in numbers. Most scientific software I know works this way.

    By the way, for the time being I find/replaced all the config files and it works perfectly – thank you very much for writing and publishing this library!

     
  • Bastian Goldluecke

    Thanks for pointing this out, I was not even aware that the "atof" function uses the system locale. The library now automatically switches to the standard "C" locale before parsing the config.

     

    Last edit: Bastian Goldluecke 2013-05-17

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.