This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: default codepage
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