This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: default codepage


On Jun 23 15:45, Thomas Wolff wrote:
> 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).
> 
No.  The difference between UTF-8 and CP1252.  0x80-0x9f are not
valid codepoints in UTF-8 and the Cygwin console is using UTF-8 by
default as well.

> [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.]

I'd be grateful if you could refrain from personal mail unless I'm
asking for it.  There's really no need to send a screenshot.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]