Bug 136102 - CUPS filters should not use locale when printing PostScript
Summary: CUPS filters should not use locale when printing PostScript
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
: 136483 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-17 20:53 UTC by Göran Uddeborg
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-10-30 20:02:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Göran Uddeborg 2004-10-17 20:53:26 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; sv-SE; rv:1.7.2)
Gecko/20040809

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):
cups-1.1.21-4

How reproducible:
Always

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.

Additional info:

The contents of the PPD file does not seem to matter.  I've reproduced
this with a file containing only

   *PPD-Adobe: "4.3"

Comment 1 Tim Waugh 2004-10-20 13:45:26 UTC
*** Bug 136483 has been marked as a duplicate of this bug. ***

Comment 2 Tim Waugh 2004-10-20 15:13:16 UTC
Reported upstream as:
http://www.cups.org/str.php?L970

Comment 3 Tim Waugh 2004-10-20 15:18:46 UTC
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.

Comment 4 Göran Uddeborg 2004-10-30 20:02:59 UTC
Now I've tested now (with cups-1.1.22-0.rc1.8), and the problem is
indeed fixed.


Note You need to log in before you can comment on or make changes to this bug.