delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/13/06:52:52

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4B4DB405.2070406@towo.net>
Date: Wed, 13 Jan 2010 12:52:37 +0100
From: Thomas Wolff <towo AT towo DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to print textfiles in Cygwin 1.7?
References: <20100112145927 DOT 264380 AT gmx DOT net> <416096c61001122248o6112e132l7e8be69eebf7ad7a AT mail DOT gmail DOT com> <4B4D9BF2 DOT 1080803 AT towo DOT net>
In-Reply-To: <4B4D9BF2.1080803@towo.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Some additional notes on this:
> On 13.01.2010 07:48, ext Andy Koppe wrote:
>> 2010/1/12 Niklaus Kuehnis:
>>> I've upgraded to Cygwin 1.7 (release version, clean install) and now 
>>> am unable to print text files with non-ascii characters (i.e. German 
>>> umlauts) from commandline.
>>>
>>> On Cygwin 1.5 printing used to work with a2ps but now all umlauts 
>>> are replaced by strange characters (i.e. the u with diaeresis 
>>> appears as a capital A with a tilde and '1/4'). The same happens 
>>> with lpr. The files print fine using the Windows text editor.
>> The problem is that both a2ps and lpr don't yet support UTF-8.
> So the easiest practical solution is to use a Windows tool:
> notepad /p filename
>
> as I also use it for the print function of my editor mined; notepad 
> auto-detects UTF-8 nicely!
1. notepad /p prints to your default printer
2. for font configuration, invoke notepad manually;
     if you want a fixed-width font for text printing, these are 
recommendable for a good coverage of Unicode: Lucida Console, Courier 
New, Andale Mono, Everson Mono
     configure 10 pt font size to make sure 80 characters fit on a line, 
11 pt for 72 characters
3. can somebody check/confirm this still works on Vista, please?

Thanks
Thomas

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019