delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/23/12:34:35

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: Eric Blake <ebb9 AT byu DOT 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 DOT n5MEmF1r018726 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <200906231345 DOT n5NDj9i1026763 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <20090623140643 DOT GB3024 AT calimero DOT vinschen DOT de> <200906231504 DOT n5NF4Xiv027571 AT mail DOT bln1 DOT bf DOT nsn-intra DOT net> <20090623153016 DOT GA4773 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
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 <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

- Raw text -


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