Unicode console: fix font warning on Vista and Win7
commitf7c91d672ed98874ad12a854e878d9620c0f80e3
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 13 Mar 2012 05:44:38 +0000 (13 00:44 -0500)
treef6191ed4d1f2353a2727e7a2134a293d9b19bc0b
parent82c389c7cda0a0b6f7881a4baf540d7669b9d5de
Unicode console: fix font warning on Vista and Win7

GetCurrentConsoleFontEx in an atexit routine doesn't work because git
closes stdout before exit (which also closes the console handle). Check
the console font when we first encounter a non-ascii character and only
schedule the warning message to be printed at exit (warnings go to stderr,
which is not closed by git).

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
compat/winansi.c