Unicode console: fix font warning on Vista and Win7
commit09a855800adb08333d7b1f351f1af1e8cb85315b
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 6 Apr 2012 21:47:35 +0000 (6 16:47 -0500)
treec02da696d26e5ad05cb28cc7923e03ce67e056f5
parentb0c7fed9f6b87f99e728b5cb8b8c6250f3768448
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