Unicode console: fix font warning on Vista and Win7
commit49bd1b15898f07b27dc79e73cca7f497e1363bb0
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 5 Jun 2012 18:44:19 +0000 (5 13:44 -0500)
treeeb9c5e037149d5131800c6289f016f5697429660
parentb8b776f5461b21355784f34fbf8abe35aed1dfcc
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