* Copyright 1996-2002 Glyph & Cog, LLC
*/
+#include <locale.h>
#include <stdio.h>
#include <stddef.h>
#include <string.h>
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;
gpdf
gpdf-marshal.c
gpdf-marshal.h
+gpdf-properties-dialog.gladep
pdfimages
pdfinfo
pdftopbm
#endif
#include <aconf.h>
+#include <locale.h>
#include <math.h>
#include <stdlib.h>
#include <stddef.h>
}
} while (i < 64);
buf[i] = '\0';
- x = atof(buf);
+ {
+ char *theLocale = setlocale(LC_NUMERIC, "C");
+ x = atof(buf);
+ setlocale(LC_NUMERIC, theLocale);
+ }
*isFP = gTrue;
} else if (b0 == 31) {
x = 0;
#endif
#include <aconf.h>
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
resizeCode(*codePtr);
if (isReal) {
code[*codePtr].type = psReal;
- code[*codePtr].real = atof(tok->getCString());
+ {
+ char *theLocale = setlocale(LC_NUMERIC, "C");
+ code[*codePtr].real = atof(tok->getCString());
+ setlocale(LC_NUMERIC, theLocale);
+ }
} else {
code[*codePtr].type = psInt;
code[*codePtr].intg = atoi(tok->getCString());
gtkgesture.h \
page-control.c \
page-control.h \
+ pdf-properties-display.c \
+ pdf-properties-display.h \
$(BUILT_SOURCES)
# Font embedding hack for Gnome Print < 2.1.?2?
stockdir = $(datadir)/pixmaps/gpdf
stock_DATA = fitwidth.png
-ltk = \
- xpdf-flip.ltk \
- xpdf-top.ltk \
- xpdf.ltk
+gladedir = $(datadir)/gpdf/glade
+glade_DATA = \
+ gpdf-properties-dialog.glade
server_in_files = GNOME_PDF.server.in.in
-
serverdir = $(libdir)/bonobo/servers
server_DATA = $(server_in_files:.server.in.in=.server)
$(server_in_files:.server.in.in=.server.in): $(server_in_files)
#endif
#include <aconf.h>
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
}
str->moveStart(i);
p = strtok(&hdrBuf[i+5], " \t\n\r");
- pdfVersion = atof(p);
+ {
+ char *theLocale = setlocale(LC_NUMERIC, "C");
+ pdfVersion = atof(p);
+ setlocale(LC_NUMERIC, theLocale);
+ }
if (!(hdrBuf[i+5] >= '0' && hdrBuf[i+5] <= '9') ||
pdfVersion > supportedPDFVersionNum + 0.0001) {
error(-1, "PDF version %s -- xpdf supports version %s"