diff options
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/xpdf/FontFile.cc | 7 | ||||
-rw-r--r-- | pdf/xpdf/Function.cc | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/pdf/xpdf/FontFile.cc b/pdf/xpdf/FontFile.cc index 56807a4..ae58547 100644 --- a/pdf/xpdf/FontFile.cc +++ b/pdf/xpdf/FontFile.cc @@ -11,7 +11,6 @@ #endif #include <aconf.h> -#include <locale.h> #include <math.h> #include <stdlib.h> #include <stddef.h> @@ -2131,11 +2130,7 @@ double Type1CFontFile::getNum(Guchar **ptr, GBool *isFP) { } } while (i < 64); buf[i] = '\0'; - { - char *theLocale = setlocale(LC_NUMERIC, "C"); - x = atof(buf); - setlocale(LC_NUMERIC, theLocale); - } + x = atof(buf); *isFP = gTrue; } else if (b0 == 31) { x = 0; diff --git a/pdf/xpdf/Function.cc b/pdf/xpdf/Function.cc index 6d70858..64ea60c 100644 --- a/pdf/xpdf/Function.cc +++ b/pdf/xpdf/Function.cc @@ -11,7 +11,6 @@ #endif #include <aconf.h> -#include <locale.h> #include <stdlib.h> #include <string.h> #include <ctype.h> @@ -1072,11 +1071,7 @@ GBool PostScriptFunction::parseCode(Stream *str, int *codePtr) { resizeCode(*codePtr); if (isReal) { code[*codePtr].type = psReal; - { - char *theLocale = setlocale(LC_NUMERIC, "C"); - code[*codePtr].real = atof(tok->getCString()); - setlocale(LC_NUMERIC, theLocale); - } + code[*codePtr].real = atof(tok->getCString()); } else { code[*codePtr].type = psInt; code[*codePtr].intg = atoi(tok->getCString()); |