texttops in CUPS 1.3

Helge Blischke h.blischke at srz.de
Tue Jan 29 05:10:10 PST 2008


Opher Shachar wrote:
>>Opher Shachar wrote:
>>
>>>In CUPS version 1.2.12 I can submit a print job with:
>>>
>>>  lp -d MyPrinter -o document-format="text/plain;charset=iso-8859-8" an_iso-8859-8_file.text
>>
>>CUPS doesn't support charset attributes on MIME types.
> 
> 
> I have to disagree. It does at least with text/plain.
> 
> 
>>Instead, it assumes UTF-8.
> 
> 
> Indeed if charset is not specified in document-format then the scheduler sets CHARSET=utf-8 in the environment.
> 
> I set up a (virtual) Fedora 8 machine with CUPS 1.3.5
>     # yum list installed "cups*"
>     Installed Packages
>     cups.i386            1:1.3.5-2.fc8          installed
>     cups-libs.i386       1:1.3.5-2.fc8          installed
>     cups-lpd.i386        1:1.3.5-2.fc8          installed
>     cups-pdf.i386        2.4.6-6.fc8            installed
> 
> and (sight) this all works well as in CUPS 1.2.12.
> 
> If I may ask for anything, it is that you do not break this functionality at least for CUPS 1.3.x .
> We are planning on upgrading (this summer) our production env to 1.3.5 to take advantage of Kerberos authentication. The said functionality is crucial to the functioning of our applications.
> 
> Thanks,
> Opher Shachar.

The "document-format=text/plain;charset=iso-8859-x" works in CUPS 1.3.5
if you have the respective charset file installed in (usually)
/usr/share/cups/charsets.
I just tested it with 1.3.5 and the iso-8859-1 charset copied over from
a 1.1.19 installation.

But be aware that this might be changed in future releases.

An alternative approach would be to install the texttops wrapper
from the cups links. You then need only specify the option
"encoding=iso-8859-x" and let CUPS do auto typing as usual.

Helge

-- 
Helge Blischke
Softwareentwicklung

H.Blischke at acm.org




More information about the cups mailing list