Warn if the Windows console font doesn't support Unicode
commit5849d1a811704f3fd2f32c50a9a904b569339c3c
authorKarsten Blees <blees@dcon.de>
Sat, 31 Jul 2010 00:04:03 +0000 (31 00:04 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 3 Aug 2010 08:35:35 +0000 (3 10:35 +0200)
tree2480cbe5b0162e132bc784f420c6e61b708553a3
parentdd266d9692e681b813bdf6f7639a6771f3fd2089
Warn if the Windows console font doesn't support Unicode

Unicode console output won't display correctly with default settings
because the default console font ("Terminal") only supports the system's
OEM charset. Unfortunately, this is a user specific setting, so it cannot
be easily fixed by e.g. some registry tricks in the setup program.

This change prints a warning on exit if console output contained non-ascii
characters and the console font is supposedly not a TrueType font (which
usually have decent Unicode support).

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
compat/winansi.c