From 6bbf24c3e48609ab6b130ee24cc77f8d9c069ed8 Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Fri, 24 Oct 2003 16:27:11 +0000 Subject: [PATCH] Bug 223551 - postscript output invalid in locales not using periods for decimals. Patch by kjh-5727@comcast.net, r=tor, sr=bzbarsky, a=roc. --- gfx/src/ps/nsPostScriptObj.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/src/ps/nsPostScriptObj.cpp b/gfx/src/ps/nsPostScriptObj.cpp index b22d961c3a0..7010958ba76 100644 --- a/gfx/src/ps/nsPostScriptObj.cpp +++ b/gfx/src/ps/nsPostScriptObj.cpp @@ -521,6 +521,7 @@ nsPostScriptObj::begin_document() int i; FILE *f; + XL_SET_NUMERIC_LOCALE(); f = mPrintContext->prSetup->out; fprintf(f, "%%!PS-Adobe-3.0\n"); fprintf(f, "%%%%BoundingBox: %g %g %g %g\n", @@ -1908,6 +1909,7 @@ FILE *f; initlanggroup(); fprintf(f, "%%%%EndProlog\n"); + XL_RESTORE_NUMERIC_LOCALE(); } /** --------------------------------------------------- @@ -1931,6 +1933,7 @@ nsPostScriptObj::begin_page() { FILE *f; + XL_SET_NUMERIC_LOCALE(); f = mPrintContext->prSetup->tmpBody; fprintf(f, "%%%%Page: %d %d\n", mPageNumber, mPageNumber); fprintf(f, "%%%%BeginPageSetup\n"); @@ -1961,6 +1964,7 @@ FILE *f; // need to reset all U2Ntable gLangGroups->Enumerate(ResetU2Ntable, nsnull); + XL_RESTORE_NUMERIC_LOCALE(); } /** ---------------------------------------------------