]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/Function.cc
Import of Xpdf 1.01 in preparation of 2.0x imports
[evince.git] / pdf / xpdf / Function.cc
index 6d70858a17fd747ceda1ccfd5cc5c05bba72871f..64ea60c1902e6bbbcc8b7e3e3b0ef21ceb993fa6 100644 (file)
@@ -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());