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=ad8460ae89385453b795c32998ab203ae922caa1;hpb=2a393c134fe3fe8eb85bf818cb7ad6ae4396322a;p=evince.git diff --git a/pdf/goo/parseargs.c b/pdf/goo/parseargs.c index ad8460ae..6bcde2c2 100644 --- a/pdf/goo/parseargs.c +++ b/pdf/goo/parseargs.c @@ -3,9 +3,10 @@ * * Command line argument parser. * - * Copyright 1996-2002 Glyph & Cog, LLC + * 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;