delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/15/05:19:18

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 15 Jan 2010 11:18:58 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: How to print textfiles in Cygwin 1.7?
Message-ID: <20100115101858.GF22230@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20100112145927 DOT 264380 AT gmx DOT net> <20100112151039 DOT GA25477 AT calimero DOT vinschen DOT de> <4B503EB4 DOT 1000605 AT gmx-topmail DOT de>
MIME-Version: 1.0
In-Reply-To: <4B503EB4.1000605@gmx-topmail.de>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Jan 15 11:08, Niklaus Kuehnis wrote:
> 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.

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.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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