www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/23/09:45:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_12
X-Spam-Check-By: sourceware.org
Date: Tue, 23 Jun 2009 15:45:09 +0200 (CEST)
Message-Id: <200906231345.n5NDj9i1026763@mail.bln1.bf.nsn-intra.net>
From: Thomas Wolff <towo AT towo DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: default codepage
References: <200906221448 DOT n5MEmF1r018726 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net>
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

Corinna Vinschen wrote:
> On Jun 22 16:48, Thomas Wolff wrote:
> > Since the latest locale-related changes, the default codepage after 
> > starting cygwin _without_ explicit setting (of a locale variable) 
> > seems to have changed from CP1252 ("Windows ANSI") to ISO 8859-1 ("Latin 1").
> > Was this change on purpose?
> 
> There was no such change at all.  The default codepage is still the
> default ANSI codepage on your system.  The internal conversion from
> Windows functions to the POSIX multibyte environment and vice versa
> uses UTF-8, though, so that all existing filenames have a valid 
> representation even when using characters not available in your
> current codepage.
If I do the following:
* Open cmd console window.
* Go into cygwin 1.7 directory.
* Call cygwin.bat.
* In cygwin, "cat" a file with all 8 bit characters from U+20 to U+FF.
Then there are no printable characters in the range U+80...U+9F 
(the difference between ISO 8859-1 and Windows "Western" CP1252).

If I set LC_CTYPE=en_US.CP1252 before invoking cygwin.bat, I get 
full CP1252.

The script calls bash --login. If I start only bash (without --login 
and without LC_CTYPE), I get CP1252 as well, which appears somehow 
inconsistent to me.

[I'll attach screen shots and the test file to a copy of this mail only 
sent to Corinna, as I seem to remember attachments are not desired on 
this mailing list.]

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