From 8b0e312bf1379d45f83a68091683df5e87bab454 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 21 Nov 2011 09:16:23 +0000 Subject: * faq-using.xml (faq.using.weirdchars): Rewrite. --- winsup/doc/ChangeLog | 4 ++++ winsup/doc/faq-using.xml | 23 +++++++++++------------ 2 files changed, 15 insertions(+), 12 deletions(-) (limited to 'winsup/doc') diff --git a/winsup/doc/ChangeLog b/winsup/doc/ChangeLog index 9c1b7c21c..d4beface4 100644 --- a/winsup/doc/ChangeLog +++ b/winsup/doc/ChangeLog @@ -1,3 +1,7 @@ +2011-11-21 Andy Koppe + + * faq-using.xml (faq.using.weirdchars): Rewrite. + 2011-11-17 Corinna Vinschen * faq-using.xml (faq.using.converting-paths): Remove reference to diff --git a/winsup/doc/faq-using.xml b/winsup/doc/faq-using.xml index edce36d9f..162629f5f 100644 --- a/winsup/doc/faq-using.xml +++ b/winsup/doc/faq-using.xml @@ -370,18 +370,17 @@ need to set the LC_ALL, LC_CTYPE or LANG environment variables. My application prints international characters but I only see gray boxes -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 -Cygwin.bat file from which you start your Cygwin shell. - - - -For a more detailed explanation see the section -The Windows Console character set in the Cygwin User's Guide. +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 +variable accordingly. +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 +cmd /c chcp followed by the appropriate Windows +codepage number. The codepage number for Cygwin's default UTF-8 character +set is 65001. -- cgit v1.2.3