Unicode console: fix font warning on Vista and Win7
commit2476b0c56b602f342408d611acb248e0f0f89f4c
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerKarsten Blees <blees@dcon.de>
Thu, 15 Mar 2012 17:05:32 +0000 (15 18:05 +0100)
treef0480a61498711a654f12ba7270cf13bc43cd2ef
parentcc7965f339b3921074720cca055f49d4df913a2c
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