This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Subject: Re: setting character set in mintty
- From: Pawel Jasinski <pawel dot jasinski at gmail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Tue, 8 Jul 2014 17:32:14 +0200
- Subject: Subject: Re: setting character set in mintty
- Authentication-results: sourceware.org; auth=none
>> The way I understand it, mintty sets the LANG variable according to
>> user settings.
>> Would it make sense for mintty to invoke "cmd /c chcp <selected>"
>> (SetConsoleOutputCP)?
>mintty does not use the console at all. A chcp call doesn't make
>any sense.
Sorry for asking stupid question. My knowledge of cygwin internals lacks.
However, I can see that for every mintty window (and bash) I get a
conhost process running. I assume that it is where the character
setting is stored for non-cygwin processes started from bash.
Again, it is my naive believe, that somewhere there maybe a convenient
place to call SetConsoleOutputCP with argument matching content of the
LANG environment variable.
--pawel
--
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