http://bugs.winehq.org/show_bug.cgi?id=10425
Summary: wine/program/net program don't show Korea Message Product: Wine Version: CVS/GIT Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-console AssignedTo: wine-bugs@winehq.org ReportedBy: hys545@dreamwiz.com
[hys545@localhost net]$ echo $LANG ko_KR.UTF-8
[hys545@localhost net]$ ./net
� ���:
NET [ HELP | START | STOP ]
[hys545@localhost net]$ export LANG=C [hys545@localhost net]$ ./net The syntax of this command is:
NET [ HELP | START | STOP ] [hys545@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@localhost net1]$ ./net 이 명령어의 문법:
NET [ HELP | START | STOP ]