X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 	tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Eric Blake <ebb9@byu.net>
Subject:  Re: default codepage
Date: Tue, 23 Jun 2009 16:34:03 +0000 (UTC)
Lines: 24
Message-ID:  <loom.20090623T160928-231@post.gmane.org>
References:  <200906221448.n5MEmF1r018726@mail.bln1.bf.nsn-intra.net> <200906231345.n5NDj9i1026763@mail.bln1.bf.nsn-intra.net> <20090623140643.GB3024@calimero.vinschen.de> <200906231504.n5NF4Xiv027571@mail.bln1.bf.nsn-intra.net> <20090623153016.GA4773@calimero.vinschen.de>
Mime-Version:  1.0
Content-Type:  text/plain; charset=us-ascii
Content-Transfer-Encoding:  7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:

> wcwidth for the "C" locale returns the standard non-CJK values.  The
> return values for wcwidth only depend on language and the @cjknarrow
> modifier, not on the charset.

Well, technically the @cjknarrow modifier IS part of the codeset.

> 
> > But wait - yet here's my question: Why is there a difference between 
> > 	bash --login
> > and
> > 	bash
> > - where in the latter case CP1252 (or the default ANSI codepage) 
> > *is* still the default?

It must be that one of your startup scripts is changing the locale environment 
variables, where --login pulls in a different set of startup scripts than 
regular shells.  Check the values of LANG, LC_ALL, and friends between your two 
shells.  And use 'bash -vx --login' to spot where it was changed.

-- 
Eric Blake



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

