Unicode console: fix font warning on Vista and Win7
commitf4295c0924a2bb5063b966d30b373bc2b4cd2382
authorKarsten Blees <blees@dcon.de>
Thu, 5 Aug 2010 22:45:33 +0000 (5 22:45 +0000)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 8 Jan 2012 17:12:39 +0000 (8 11:12 -0600)
treebf837bf9362921513c9f81da9d2540d58b1b1037
parente3a81ac737da6888a7ad4ca3f57c2d1c36b6e956
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