Red Hat Bugzilla – Bug 136102
CUPS filters should not use locale when printing PostScript
Last modified: 2007-11-30 17:10:52 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.7.2)
Description of problem:
CUPS nowdays takes locale into consideration, which is great whenever
it talks to me. But when the various filters generate PostScript
source code, the code itself should not depend on the locale. In
particlular, decimal numbers should be written in the American style
with a full stop rather than a comma. This does not seem to be the
case, which causes printouts to fail.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.env - LANG=sv_SE.utf8 "PPD=/some/ppd/file.ppd"
/usr/lib/cups/filter/texttops 120 g issue 1 "" /dev/null
Actual Results: The generated code contains lines like
/FN /cupsNormal findfont [12,000 0 0 11,333 0 0] makefont def
Note "12,000" rather than "12.000". PostScript interpreters like
GhostScript won't accept that.
The contents of the PPD file does not seem to matter. I've reproduced
this with a file containing only
*** Bug 136483 has been marked as a duplicate of this bug. ***
Reported upstream as:
Fixed package is cups-1.1.22-0.rc1.6. This should be available on Fedora devel
within the next day or two -- please verify that it fixes the problem. Thanks.
Now I've tested now (with cups-1.1.22-0.rc1.8), and the problem is