wine/program/net program don't show Korea Message
Hwang YunSong(황윤성)
hys545 at dreamwiz.com
Tue Nov 13 01:45:40 CST 2007
[hys545 at localhost net]$ echo $LANG
ko_KR.UTF-8
[hys545 at localhost net]$ ./net
� ���:
NET [ HELP | START | STOP ]
[hys545 at localhost net]$ export LANG=C
[hys545 at localhost net]$ ./net
The syntax of this command is:
NET [ HELP | START | STOP ]
[hys545 at localhost net]$
/////////////////////////////////////////////
I fixed output_string in net.c
int output_string(int msg, ...)
{
WCHAR msg_buffer[8192]; //fixed
CHAR ansi[8192];//ADD
va_list arguments;
LoadStringW(GetModuleHandle(NULL), msg, msg_buffer,
sizeof(msg_buffer));//fixed
WideCharToMultiByte(CP_UNIXCP, 0, msg_buffer, -1, ansi, sizeof(ansi), NULL,
NULL);//ADD
va_start(arguments, msg);
vprintf(ansi, arguments);//fixed
va_end(arguments);
return 0;
}
////////////////////////////////////////////////////////////
Result:
[hys545 at localhost net1]$ ./net
이 명령어의 문법:
NET [ HELP | START | STOP ]
-------------------------------------------------
Your Life on the Net
DreamWiz Free Mail @ http://www.dreamwiz.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: net_fix.diff
Type: application/octet-stream
Size: 830 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071113/94298ada/attachment.obj
More information about the wine-patches
mailing list