Unicode console: fix font warning on Vista and Win7
commitaa7bfb8ba27a7f0a4d3aef774e92486068e88155
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:41:07 +0000 (15 09:41 +0200)
tree01687c780b28d989aeb465038b03047865cece68
parent005aa6e94d49155a23dfee227cdc35285f7a3038
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