Even when the system locale is set to Chinese, you can still control the separate code page of the console, either via the short cut property or command line. On my system, I can see the following choices in the property:

* 437 (OEM - United States)
* 932 (Japanese)
* 936 (Simplified Chinese)
* 949 (Korean)
* 950 (Traditional Chinese)

However, it seems not every one of them works correctly, as also indicated by the "Invalid code page" message when I do "chcp 932" manually. With the system locale set to 936, I was able to correctly set code pages 437, 1252, and 936. The selectable fonts in the command prompt properties will also change accordingly.

I wish Windows could do more, but.... I now prefer to use Mac at home.


On 23 November 2012 03:57, Erwin Waterlander <waterlan@xs4all.nl> wrote:
Op 22-11-2012 15:16, Yongwei Wu schreef:
> On 22 November 2012 16:07, waterlan <waterlan@xs4all.nl
> <mailto:waterlan@xs4all.nl>> wrote:
>
>     Maximus5 schreef op 2012-11-22 07:54:
>     > waterlan <waterlan@...> writes:
>     >
>     >
>     >
>     >> Is 新宋体 (Simsun) the standard ttf font in the Console in a
>     Chinese
>     >
>     >> Windows? If yes, why can't I select it in the Console when Windows
>     >> is
>     >
>     >> switched to English? Is it also impossible to select Lucida Console
>     >> when
>     >
>     >> Windows is switched to Chinese?
>     >
>     >
>     >
>     > Hi,
>     >
>     >
>     >
>     > The list of available fonts changes when you change codepage :)
>     >
>     > For example (on Chinese Windows versions) "chcp 936" enables Simsun,
>     >
>     > while "chcp 1250" enables Lucida Console. Can't remember, whats
>     > hapens
>     >
>     > on "chcp 65001". Hm, but each Chinese codepage (437? not sure) has
>     >
>     > its own font containing required glyphes.
>     >
>     >
>     >
>     > just for information
>     >
>
>     Hi Maximus,
>
>     Thanks! That is useful information. Yesterday I downloaded Windows 7
>     Enterprise Evaluation and installed it in a Virtual Box. I added the
>     Chinese language package. I'm going to try and let you know.
>
>     best regards,
>
>
> Late to this thread.... However, I believe you do not need the
> language pack, unless you need to change the interface language. I do
> not have any language packs installed, but I can type and display Chinese.
>
> For the font, you can check the existence of
> C:\Windows\Fonts\simsun.ttc (in the default path). This is the default
> Chinese font.
>
> Modern GUI applications should not care about the system locale, but
> it can still matter for old applications and/or applications that do
> not support globalization well. You may need to set Chinese as the
> default system locale in those cases. To do that, you need to go to
> Control Panel > Region and Language > Administrative > Change system
> locale. It does have some side-effects for a typical Western user, but
> mostly cosmetic in daily use.
>
>

Hi Yongwei,

You are right. I just discovered that it works that way. When I change
the system locale in the Control Panel to Chinese I can select the
Simsun font in the Console. I cannot select Lucida Console or Consolas
with a Chinese system locale. It appears that the fonts that you can
select in the Console depend on the system locale. It doesn't require an
Ultimate or Enterprise Windows edition, I can do it also in a Home
Premium edition of Windows.

The system locale is important for console applications, because of this
issue, also for modern Console applications that support Unicode. I
would be nicer if you could select any mono spaced font in the Console,
like in GUI applications.

I was afraid that changing the system locale to Chinese would change all
text to Chinese and I could not use my Windows any more, but that was
not the case. The "display language" is a different setting and can stay
Dutch (or English) with a Chinese system locale.

best regards,

--
Erwin Waterlander
http://waterlan.home.xs4all.nl/


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
MinGW-users mailing list
MinGW-users@lists.sourceforge.net

This list observes the Etiquette found at
http://www.mingw.org/Mailing_Lists.
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

_______________________________________________
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe



--
Wu Yongwei
URL: http://wyw.dcweb.cn/