Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Niklaus Kuehnis

Andy Koppe schrieb:

One workaround is to convert the file manually using iconv, e.g.:

$ iconv -f utf-8 -t iso-8859-1 bla.txt | a2ps -o bla.ps
  

This works ok. Thanks! I will try to make an alias for it.


Please note that 'nano' also doesn't support UTF-8 yet. While entering
characters looks like it works initially, nano will internally think
that you've entered two characters when you enter an umlaut. Hence
things get wonky when you try to edit them.
  
So that may be why I get some strange behavior of nano (disappearing 
letters and such) when editing files with umlauts.


Thanks again!
Niklaus

--
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



Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Niklaus Kuehnis

Thomas Wolff schrieb:


So the easiest practical solution is to use a Windows tool:
notepad /p filename


This works, too. Thanks!

Niklaus

--
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



Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Niklaus Kuehnis

Thomas Wolff schrieb:


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?


Yes, this printing command still works in Vista, and also the font 
switching procedure.


Niklaus



--
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



Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Niklaus Kuehnis

Corinna Vinschen schrieb:

On Jan 12 15:59, Niklaus Kuehnis wrote:

Hi,

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.


Did you read the User's Guide, especially
http://cygwin.com/cygwin-ug-net/setup-locale.html
?


I've now read that page. As UTF-8 is generally the preferred charset, I 
would like to stick to it. Does changing the language, e.g. to de_CH, 
change umlaut handling? It doesn't seem to, here.


Best wishes,
Niklaus

--
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



Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Niklaus Kuehnis

Corinna Vinschen schrieb:

I've now read that page. As UTF-8 is generally the preferred
charset, I would like to stick to it. Does changing the language,
e.g. to de_CH, change umlaut handling? It doesn't seem to, here.


It does, though.  If you read the page you have learned that setting
LANG to just a language (de_CH), without a charset (.UTF-8) will set the
character set to the Windows codepage which is the default ANSI codepage
on your machine.  In your case this is probably CP1252.  If you want to
be sure to use UTF-8, then say so:  export LANG=de_CH.UTF-8.


I set this variable (and also LC_CTYPE and LC_ALL), and printing with 
umlauts with bare a2ps works fine now. Thanks!


Niklaus

--
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



Re: How to print textfiles in Cygwin 1.7?

2010-01-15 Thread Niklaus Kuehnis

Andy Koppe schrieb:

2010/1/15 Niklaus Kuehnis:

If you want to
be sure to use UTF-8, then say so:  export LANG=de_CH.UTF-8.

I set this variable (and also LC_CTYPE and LC_ALL), and printing with
umlauts with bare a2ps works fine now. Thanks!


I can't confirm that. Sure you were printing a UTF-8 file there?


You're right. I probably produced the file with rxvt that seems to run 
in Latin1.


Niklaus

--
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