poppler/PDFDoc.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
New commits: commit b7702820245fb6cdbf77afba37c53c03d4362a25 Author: Albert Astals Cid <[email protected]> Date: Mon Sep 21 21:58:26 2009 +0200 Print with a . and not with a , in all locales This is a regression after the removal of setting LC_NUMERIC diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc index 435ad10..b61a8e4 100644 --- a/poppler/PDFDoc.cc +++ b/poppler/PDFDoc.cc @@ -713,8 +713,12 @@ Guint PDFDoc::writeObject (Object* obj, Ref* ref, OutStream* outStr) outStr->printf("%i ", obj->getInt()); break; case objReal: - outStr->printf("%g ", obj->getReal()); + { + GooString s; + s.appendf("{0:.5g}", obj->getReal()); + outStr->printf("%s ", s.getCString()); break; + } case objString: writeString(obj->getString(), outStr); break; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
