[Bug 10425] New: wine/program/net program don't show Korea Message
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun Nov 11 19:03:09 CST 2007
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 at winehq.org
ReportedBy: hys545 at dreamwiz.com
[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 ]
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list