diff options
author | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2003-03-31 15:36:22 (GMT) |
---|---|---|
committer | Martin Kretzschmar <mkretzschmar@src.gnome.org> | 2003-03-31 15:36:22 (GMT) |
commit | 5f7eee136b5330a15069179cbd97f168287a9ef6 (patch) | |
tree | 63f86cbfcd6b29ce39e394b2210f34c530cfbfba /pdf/xpdf/Function.cc | |
parent | 829ff1baafce438b4c122013ad3d6846a8a952e5 (diff) |
Import of Xpdf 1.01 in preparation of 2.0x imports
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()); |