Index: src/main.cc =================================================================== --- a/src/main.cc (revision 107) +++ b/src/main.cc (working copy) @@ -543,6 +543,10 @@ Log(LOG_startup) CERR << "locale is: " << locale << "." << endl; + // ensure that numbers are scanned and printed in + // a defined APL-compatible manner, regardless of the locale + setlocale(LC_NUMERIC, "C"); + const char * dir = bindtextdomain(PACKAGE, LOCALEDIR); if (dir)