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 Subject: Re: default codepage Date: Tue, 23 Jun 2009 16:34:03 +0000 (UTC) Lines: 24 Message-ID: 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 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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