FreeBSD port for redirecting printer

Matthias Apitz guru at unixarea.de
Fri Mar 1 15:14:43 UTC 2013


El día Friday, March 01, 2013 a las 08:37:40AM -0600, Mark Felder escribió:

> On Fri, 01 Mar 2013 06:51:53 -0600, Matthias Apitz <guru at unixarea.de>  
> wrote:
> 
> > I do not believe that this will work for UTF-8 coded data, but you might
> > convince me (hopefully);
> 
> If I simply do
> 
> # lpr CUPS-UTF-8.txt
> 
> I end up with an exact replica of the data within that file -- noise.

hm, I would have expected wrong data arriving at the printer;

> If I open CUPS-UTF-8.txt in gedit and print via lpr it works great.

yes, but this is because gedit produces by its own Postscript code
(using cairo) which then gets send to the lpr command:

%!PS-Adobe-3.0                                                                            
%%Creator: cairo 1.10.2 (http://cairographics.org)                                        
%%CreationDate: Fri Mar  1 16:06:50 2013                                                  
%%Pages: 5                                                                                
%%BoundingBox: 0 0 596 842                                                                
%%DocumentData: Clean7Bit                                                                 
%%LanguageLevel: 2                                                                        
%%DocumentMedia: A4 595 842 0 () ()                                                       
%%EndComments                                                                             
%%BeginProlog
...

ok, at the moment only the CUPS filter do what we want directly from an
UTF-8 test file (q.e.d.)

	matthias
-- 
Sent from my FreeBSD netbook

Matthias Apitz               |  - No system with backdoors like Apple/Android
E-mail: guru at unixarea.de     |  - Never being an iSlave
WWW: http://www.unixarea.de/ |  - No proprietary attachments, no HTML/RTF in E-mail
phone: +49-170-4527211       |  - Respect for open standards


More information about the freebsd-ports mailing list