diff options
Diffstat (limited to 'pdf/xpdf/FontFile.cc')
-rw-r--r-- | pdf/xpdf/FontFile.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pdf/xpdf/FontFile.cc b/pdf/xpdf/FontFile.cc index 7476909..6860e4a 100644 --- a/pdf/xpdf/FontFile.cc +++ b/pdf/xpdf/FontFile.cc @@ -12,6 +12,7 @@ #pragma implementation #endif +#include <locale.h> #include <math.h> #include <stdlib.h> #include <stddef.h> @@ -2214,7 +2215,11 @@ double Type1CFontFile::getNum(Guchar **ptr, GBool *isFP) { } } while (i < 64); buf[i] = '\0'; - x = atof(buf); + { + char *theLocale = setlocale(LC_NUMERIC, "C"); + x = atof(buf); + setlocale(LC_NUMERIC, theLocale); + } *isFP = gTrue; } else if (b0 == 31) { x = 0; |