Re: start:start.c Display messages in the console encoding.

2007-10-25 Thread Anatoly Lyutin
Kirill K. Smirnov wrote: WriteFile does not output unicode characters to console screen buffer, so if ConsoleOutputCP is smth like 65001, this will fail. The page http://msdn2.microsoft.com/en-us/library/ms687401.aspx contains remedy by Microsoft how to deal with problem: 1) If device

start:start.c Display messages in the console encoding.

2007-10-24 Thread Kirill K. Smirnov
static void output(const char *message) { - DWORD count; - WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), message, strlen(message), count, NULL); + DWORD count = 0; + WCHAR *mesW = NULL; + char *mes = NULL; + int wlen = 0; + int len = 0; + + wlen

Re: start:start.c Display messages in the console encoding.

2007-10-23 Thread Dmitry Timoshkov
Anatoly Lyutin [EMAIL PROTECTED] wrote: static void output(const char *message) { - DWORD count; - WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), message, strlen(message), count, NULL); + DWORD count = 0; + WCHAR *mesW = NULL; + char *mes = NULL; + int wlen = 0; + int len = 0; There