Unicode console: fix font warning on Vista and Win7
commit9e47e31d380058edd90a94c0309902a1e0d8cdd4
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerErik Faye-Lund <kusmabite@gmail.com>
Tue, 8 Nov 2011 01:26:43 +0000 (8 02:26 +0100)
treefaa88d5292baeb40b6af605882d49224de073719
parentf0a20fa5e44146ddc65ad6c2fdab7831bc423d99
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