Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/FontFile.cc
diff options
context:
space:
mode:
authorMartin Kretzschmar <mkretzschmar@src.gnome.org>2003-02-23 13:35:35 (GMT)
committer Martin Kretzschmar <mkretzschmar@src.gnome.org>2003-02-23 13:35:35 (GMT)
commit939b9d12f2919ceea85575e6b7e1d67874da91a8 (patch)
tree5883ee7aecd09f877509316678ae5bc164dbd0b4 /pdf/xpdf/FontFile.cc
parent12bafbb7ffef77d5b5b948bbe8c49fe9497d9d9d (diff)
new widget: table with labels displaying properties of PDFs
* xpdf/pdf-properties-display.c, xpdf/pdf-properties-display.h, xpdf/gpdf-properties-dialog.glade: new widget: table with labels displaying properties of PDFs * xpdf/gpdf-control.cc (has_unicode_marker) (utf16_big_endian_to_utf8, info_dict_get_string) (info_dict_get_date, gpdf_control_process_string_property) (gpdf_control_process_date_property) (gpdf_control_process_properties) (gpdf_control_properties_dialog_response_cb) (verb_FileProperties_cb): new: a PDF properties command * xpdf/Makefile.am: build pdf-properties-display.[ch], install glade file * xpdf/.cvsignore: ignore gpdf-properties-dialog.gladep * xpdf/gpdf-persist-stream.h, xpdf/gpdf-persist-stream.cc (gpdf_persist_stream_get_length): new function * xpdf/gpdf-control-ui.xml: add FileProperties command and menu item inside a "File Items Placeholder" * shell/gpdf-window-ui.xml: add "File Items Placeholder" * configure.in: check for libglade-2.0 * Makefile.am (EXTRA_DIST): don't dist gpdf.mime * xpdf/PDFDoc.cc, xpdf/Function.cc, xpdf/FontFile.cc, goo/parseargs.c: call atof only in the "C" locale
Diffstat (limited to 'pdf/xpdf/FontFile.cc')
-rw-r--r--pdf/xpdf/FontFile.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/pdf/xpdf/FontFile.cc b/pdf/xpdf/FontFile.cc
index ae58547..56807a4 100644
--- a/pdf/xpdf/FontFile.cc
+++ b/pdf/xpdf/FontFile.cc
@@ -11,6 +11,7 @@
#endif
#include <aconf.h>
+#include <locale.h>
#include <math.h>
#include <stdlib.h>
#include <stddef.h>
@@ -2130,7 +2131,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;