From owner-freebsd-ports@FreeBSD.ORG Fri Mar 1 15:14:43 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C95D289D for ; Fri, 1 Mar 2013 15:14:43 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 36AE629F for ; Fri, 1 Mar 2013 15:14:43 +0000 (UTC) Received: from [89.204.139.131] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UBRfS-0007Iy-QJ; Fri, 01 Mar 2013 16:14:40 +0100 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r21FEalr002283; Fri, 1 Mar 2013 16:14:36 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r21FEZvi002282; Fri, 1 Mar 2013 16:14:35 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 1 Mar 2013 16:14:34 +0100 From: Matthias Apitz To: Mark Felder Subject: Re: FreeBSD port for redirecting printer Message-ID: <20130301151434.GA2249@tiny.Sisis.de> References: <20130226180645.GA1161@tiny.Sisis.de> <20130226183646.GA2351@tiny.Sisis.de> <20130227115646.GA1821@tiny.Sisis.de> <20130301125152.GA1859@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 10.0-CURRENT r226986 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.139.131 Cc: freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Mar 2013 15:14:43 -0000 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 > 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@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