Unicode console: fix font warning on Vista and Win7
commite76b8f71b4087cd5286fd4b97e7c638cc70670fe
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 3 May 2012 15:49:31 +0000 (3 10:49 -0500)
treeb6118d10bfe16300184bdca92d41bdfc13ecb8a5
parent1e6d96fdc0182065f3c13e9b012ad447cf37c618
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