From 5f7eee136b5330a15069179cbd97f168287a9ef6 Mon Sep 17 00:00:00 2001 From: Martin Kretzschmar Date: Mon, 31 Mar 2003 15:36:22 +0000 Subject: [PATCH] Import of Xpdf 1.01 in preparation of 2.0x imports --- pdf/xpdf/FontFile.cc | 7 +------ 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 56807a4b..ae585470 100644 --- a/pdf/xpdf/FontFile.cc +++ b/pdf/xpdf/FontFile.cc @@ -11,7 +11,6 @@ #endif #include -#include #include #include #include @@ -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 6d70858a..64ea60c1 100644 --- a/pdf/xpdf/Function.cc +++ b/pdf/xpdf/Function.cc @@ -11,7 +11,6 @@ #endif #include -#include #include #include #include @@ -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()); -- 2.43.5