delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/20/09:07:00

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_20,J_CHICKENPOX_83,RCVD_IN_DNSWL_LOW,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-Id: <1237558001.29448.1306441591@webmail.messagingengine.com>
From: "Charles Wilson" <cygwin AT cwilson DOT fastmail DOT fm>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
MIME-Version: 1.0
Subject: Re: What is your default ANSI codepage?
Date: Fri, 20 Mar 2009 10:06:41 -0400
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

So I was thinking, what if cygwin supported codepage 437 in this manner?
Since that is the "OEM" codepage, then we'd have a workaround of sorts
if we discovered a need later for the "old" codepage:oem setting.

So, I compiled your test app using 'gcc -mno-cygwin', and did the
following from a DOS box (WinXP):

H:\>codep
ANSI codepage: 1252

Latin-1, ok...

H:\>chcp 437
Active code page: 437

but then...

H:\>codep
ANSI codepage: 1252

huh? Does GetACP really get the "active" code page?

--
Chuck

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

- Raw text -


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