X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=pdf%2Fgoo%2Fparseargs.c;h=6bcde2c291b94548427000c208b6b50dd03a5f11;hb=9315dc40269dcdc854e6aa39c74ff96324b52dc5;hp=ceba887796cef30f99b41e025613882e986ffbfe;hpb=d9f9a6449f377b4c933b75d57541b19c6d088994;p=evince.git diff --git a/pdf/goo/parseargs.c b/pdf/goo/parseargs.c index ceba8877..6bcde2c2 100644 --- a/pdf/goo/parseargs.c +++ b/pdf/goo/parseargs.c @@ -3,9 +3,10 @@ * * Command line argument parser. * - * Copyright 1996 Derek B. Noonburg + * Copyright 1996-2003 Glyph & Cog, LLC */ +#include #include #include #include @@ -117,7 +118,11 @@ static GBool grabArg(ArgDesc *arg, int i, int *argc, char *argv[]) { break; case argFP: if (i + 1 < *argc && isFP(argv[i+1])) { - *(double *)arg->val = atof(argv[i+1]); + { + char *theLocale = setlocale(LC_NUMERIC, "C"); + *(double *)arg->val = atof(argv[i+1]); + setlocale(LC_NUMERIC, theLocale); + } n = 2; } else { ok = gFalse;