This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: bash and the current locale implementation
On Oct 1 13:09, Andy Koppe wrote:
> 2009/10/1 Corinna Vinschen
> > The charset of the console is
> > determined by the environment setting of the current application.
>
> Right, but I think it should be determined once at the start of a
> process. If a process later changes its env variables, that's its own
> business. It should not have an effect on filenames or console I/O,
> because it wouldn't on Linux either.
>
> The assumption on Linux is that the environment variables at process
> startup tell an application what encoding is used in filenames and in
> its terminal. An application might be calling setlocale() with
> different charsets a lot of times, e.g. to convert between different
> encodings, but it would not expect that to have an effect on filenames
> or the terminal.
Hmm, that's a convincing argument. Without changing bash, this would
also result in tcsh behaving the same as bash and dash.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat