This is the mail archive of the
mailing list for the Cygwin project.
Re: "C" UTF-8 trouble
> Corinna Vinschen wrote:
>>Os it really necessary to change Cygwibn for this? ÂI'm wondering if we
>>should put this into /etc/profile and /etc/csh.login instead.
And also bash.bashrc (for non-login shells), zprofile and zshrc,
whatever ksh uses, ... . Yet programs that are invoked without going
through a shell still wouldn't get the setting. Same for users who've
modified those files.
Additionally, it would look like the locale for the shells themselves
could be configured that way, when that isn't actually the case,
because it's determined at shell startup.
> In my limited understanding of the issue, that sounds like a better plan
> to me. ÂIt seems like the DLL should not be dictating this type of
> policy if we can help it because, if we make a mistake, it will require
> a new cygwin release.
Hmm, fair point.
Instead of hardcoding "C-UTF8", how about reading the initial LANG
setting from a config file, e.g. /etc/defaults/locale?
That's essentially what happens on Debian, except that init/login
scripts are responsible for reading the setting there. With Cygwin,
DLL initialization takes the place of such scripts, as e.g. regarding
This would also provide a neat answer to the question of how to
globally change the Cygwin locale. The existing answers are both
somewhat unsatisfactory: cygwin.bat doesn't affect anything not
started through it, and the Windows environment is hard to find and
might unintentionally affect non-Cygwin programs.