[cups.bugs] [HIGH] STR #1995: Locale setting might cause filterstoproduce invalid PostScript

Michael Sweet mike at easysw.com
Fri Sep 29 06:41:36 PDT 2006


Helge Blischke wrote:
> Thorsten Vitt wrote:
>> [STR New]
>>
>> German locale settings use a , instead of a . as decimal sign. When
>> submitting a print job using lp in a German locale (e.g.
>> LANG=de_DE.UTF-8), the filters (at least pdftops and the filter rotating
>> pages for Cups' landscape option) use localized numbers in the PostScript
>> output, which of course violates the PostScript spec (and causes the 
>> print
>> jobs to fail at either GhostScript or the PostScript printer).
>>
>> Link: http://www.cups.org/str.php?L1995
>> Version: 1.2.0
>>
> 
> A workaround to all locale quirks introduced by any scripting
> language (be it Perl, Python, or whatever) is
> to insert
>     LANG=C; export LANG
> into the CUPS startup script (usually in /etc/init.d
> or /etc/rc.d/init.d).

That should have no effect, since the scheduler adds a LANG env var
based on the job language...

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Publishing Software        http://www.easysw.com




More information about the cups mailing list