This is the mail archive of the
mailing list for the Cygwin project.
Re: Setup and Mintty
On 18 November 2011 10:59, Corinna Vinschen wrote:
> There's the faq entry "My application prints international characters
> but I only see gray boxes". ÂThe entry about the console is still
> valid, even after changing to mintty on the desktop.
That answer seems out of date actually, since the Cygwin console
charset is determined at the start of each process rather than at the
start of each process tree, so it should always match what a process
thinks it is.
> ÂDo you think
> it makes sense to add words about mintty here? ÂIf so, I guess the
> problem more often occurs with Win32 apps running in a UTF-8 mintty.
> Do you have a suggestion for an addition related to mintty?
How about this:
RCS file: /cvs/src/src/winsup/doc/faq-using.xml,v
retrieving revision 1.37
diff -u -r1.37 faq-using.xml
--- faq-using.xml 18 Nov 2011 11:39:31 -0000 1.37
+++ faq-using.xml 20 Nov 2011 19:53:25 -0000
@@ -370,18 +370,17 @@
<question><para>My application prints international characters but I only
see gray boxes</para></question>
-<para>Very likely you didn't set your console character set to the preferred
-character set before the first Cygwin application was started in the
-console. To make sure the console is using the desired character set,
-make sure that one of the internationalization environment variables
-LC_ALL, LC_CTYPE, or LANG is set before the first Cygwin process starts.
-You can do that, for instance, by setting the variable in your
-<literal>Cygwin.bat</literal> file from which you start your Cygwin shell.
-For a more detailed explanation see the section
Windows Console character set</ulink> in the Cygwin User's
+<para>In the case of Cygwin programs, this likely means that the
+character set as determined by the LC_ALL, LC_CTYPE or LANG environment
+variables does not match the one set on the Text page of the Cygwin Terminal's
+options. Setting the locale in the terminal's options will set the LANG
+<para>Non-Cygwin programs in the Cygwin Terminal do not usually take
+heed of the locale environment variables. Instead, they often use the
+so-called console codepage, which can be determined with the command
+<command>cmd /c chcp</command> followed by the appropriate Windows
+codepage number. The codepage number for Cygwin's default UTF-8 character
+set is 65001.</para>