diff options
Diffstat (limited to 'pdf/xpdf/Function.cc')
-rw-r--r-- | pdf/xpdf/Function.cc | 7 |
1 files changed, 1 insertions, 6 deletions
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()); |