Discussion:
cupsfilter 1.4.3 && CHARSET=utf-8
Matthias Apitz
2013-02-08 19:57:57 UTC
Permalink
Hello,

I'm trying to figure out with cupsfilter what the cupsd at the end of the chain of processes will finally send to the printer...

For a given UTF-8 encoded text file I can fine do the conversion to Postscript using the mappings in charsets/utf-8 and the fonts with the following commands:

$ CHARSET=utf-8; export CHARSET
$ PPD=/etc/cups/ppd/xxx.ppd; export PPD
$ texttops 1 rleigh myfile 1 "" file.utf8 > file.ps

When I do this with cupsfilter like:

$ sbin/cupsfilter -p /etc/cups/ppd/xxx.ppd -m application/vnd.cups-postscript file.utf8 > file.ps

somehow the environment CHARSET=utf-8 is not given to the filter texttops and this in turn does not look into the file charsets/utf-8 for the mapping of UTF-8 codepoints to fonts.

What I do wrong?

Thanks

matthias
Matthias Apitz
2013-02-11 08:00:35 UTC
Permalink
Post by Matthias Apitz
Hello,
I'm trying to figure out with cupsfilter what the cupsd at the end of the chain of processes will finally send to the printer...
$ CHARSET=utf-8; export CHARSET
$ PPD=/etc/cups/ppd/xxx.ppd; export PPD
$ texttops 1 rleigh myfile 1 "" file.utf8 > file.ps
$ sbin/cupsfilter -p /etc/cups/ppd/xxx.ppd -m application/vnd.cups-postscript file.utf8 > file.ps
somehow the environment CHARSET=utf-8 is not given to the filter texttops and this in turn does not look into the file charsets/utf-8 for the mapping of UTF-8 codepoints to fonts.
I digged into the sources of cups-1.4.6/scheduler/cupsfilter.c, fixed it for me and filed a bug report in:
https://www.cups.org/str.php?L4273

Matthias

Loading...