Unicode console: fix font warning on Vista and Win7
commit71f4bd21981d081413439ac2f5860772bb8c0707
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Sun, 29 Jan 2012 11:07:38 +0000 (29 11:07 +0000)
treebdebd56c3e0ff491fb4d4c5f85b5734edb4113e6
parentc5ae654abf15675d00633c1bd154bc0ef3354335
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