Closed
Bug 9103
Opened 27 years ago
Closed 27 years ago
printing fails, (locale-defined) comma decimal separator incorrectly used in PS output
Categories
(Core :: Printing: Output, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: chepelov, Assigned: dcone)
References
Details
Mozilla build #1999062312, CVS update done around 1999-07-01, 0:00 UTC
Attempting to print http://www.crans.ens-cachan.fr gives a blank page ; running
the resulting file into GS shows :
"Error: /undefined in 1,00
Operand stack:
"
But I run my system with LANG=fr, and here non-computer literate use the comma
as the decimal separator (computer users like me are polluted enough and use the
dot anyway). It turns out some PostScript values (see file
http://www.crans.ens-cachan.fr/~chepelov/fix-the-commas.ps.gz) are output using
the locale-defined decimal separator, instead of always the dot (as the PS
language requires).
Running that file through "tr ',' '.'" before Ghostcripting yields a
syntactically correct file (though printing a black background is definitely
rude ; should I file this too ?)
http://lxr.mozilla.org/seamonkey/source/gfx/src/ps/nsPostScriptObj.cpp#852 gives
a clue : XP_FilePrintf is really fprintf, which behaves in a locale-aware way on
my system (AMD K6-200, RH 6.0 [glibc 2.1])
| Assignee | ||
Updated•27 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•27 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 1•27 years ago
|
||
Needed a setlocale in the setcolor() call. Now should be fixed.
Updated•27 years ago
|
Status: RESOLVED → VERIFIED
Comment 2•27 years ago
|
||
Fixed in the Sept 10 th build.
You need to log in
before you can comment on or make changes to this bug.
Description
•