Win32: support Unicode console output
WriteConsoleW seems to be the only way to reliably print unicode to the console (without weird code page conversions). Also redirects vfprintf to the winansi.c version. Signed-off-by: Karsten Blees <blees@dcon.de> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Stepan Kasal <kasal@ucw.cz> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
a15d4af449
commit
617ce965aa
@ -320,9 +320,11 @@ int mingw_raise(int sig);
|
||||
int winansi_fputs(const char *str, FILE *stream);
|
||||
int winansi_printf(const char *format, ...) __attribute__((format (printf, 1, 2)));
|
||||
int winansi_fprintf(FILE *stream, const char *format, ...) __attribute__((format (printf, 2, 3)));
|
||||
int winansi_vfprintf(FILE *stream, const char *format, va_list list);
|
||||
#define fputs winansi_fputs
|
||||
#define printf(...) winansi_printf(__VA_ARGS__)
|
||||
#define fprintf(...) winansi_fprintf(__VA_ARGS__)
|
||||
#define vfprintf winansi_vfprintf
|
||||
|
||||
/*
|
||||
* git specific compatibility
|
||||
|
Reference in New Issue
Block a user