Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/Function.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/xpdf/Function.cc')
-rw-r--r--pdf/xpdf/Function.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/pdf/xpdf/Function.cc b/pdf/xpdf/Function.cc
index 82bbdce..cafb63f 100644
--- a/pdf/xpdf/Function.cc
+++ b/pdf/xpdf/Function.cc
@@ -12,6 +12,7 @@
#pragma implementation
#endif
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
@@ -1072,7 +1073,11 @@ GBool PostScriptFunction::parseCode(Stream *str, int *codePtr) {
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());