Console codepage setting via chcp?

Corinna Vinschen corinna-cygwin@cygwin.com
Sun Sep 27 09:12:00 GMT 2009


On Sep 27 14:13, IWAMURO Motonori wrote:
> Hi.
> 
> # My comment might not be apposite because I have not read all the thread yet.
> 
> > How could that be done for the console though? A couple of lines like
> > this in cygwin.bat?
> >
> >  chcp 65001
> >  set LC_CTYPE=C.UTF-8
> 
> The problem to the CJK users is caused by "chcp 65001".
> Windows' command prompt change fontset when run "chcp 65001".
> The fontset of codepage 65001 does not include CJK font.
> 
> I have tested it on WinXP SP3 and Win7RC.

That's ok.  I have given up on the idea to change the console output
codepage already.  There's a simple way to store the codepage of the
current console within Cygwin itself, so a tool like the proposed
`setcons' doesn't have to change the real console codepage.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat



More information about the Cygwin-developers mailing list