http://bugs.winehq.org/show_bug.cgi?id=16344
Summary: cmd.exe builtin time prints wrong message : current date instead of current time Product: Wine Version: 1.1.9 Platform: All OS/Version: All Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: le_afo@gmx.net
Created an attachment (id=17657) --> (http://bugs.winehq.org/attachment.cgi?id=17657) patch for wine-1.1.9/programs/cmd/builtins.c
cmd.exe builtin time command prints 'Current Date is' instead of 'Current Time is' coz wine-1.1.9/programs/cmd/builtins.c : WCMD_setshow_time uses LoadMessage( WCMD_CURRENTDATE, ...) instead of WCMD_CURRENTTIME(WCMD_CURRENTTIME, ... )
the following patch will fix it: --- wine-1.1.9/programs/cmd/builtins.c.orig 2008-11-21 17:20:28.000000000 +0 100 +++ wine-1.1.9/programs/cmd/builtins.c 2008-12-05 14:28:51.000000000 +0100 @@ -2135,7 +2135,7 @@ GetLocalTime(&st); if (GetTimeFormat (LOCALE_USER_DEFAULT, 0, &st, NULL, curtime, sizeof(curtime)/sizeof(WCHAR))) { - WCMD_output (WCMD_LoadMessage(WCMD_CURRENTDATE), curtime); + WCMD_output (WCMD_LoadMessage(WCMD_CURRENTTIME), curtime); if (strstrW (quals, parmT) == NULL) { WCMD_output (WCMD_LoadMessage(WCMD_NEWTIME)); WCMD_ReadFile (GetStdHandle(STD_INPUT_HANDLE), buffer,
http://bugs.winehq.org/show_bug.cgi?id=16344
le_afo le_afo@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |le_afo@gmx.net Difficulty|--- |Minutes Keywords| |patch
--- Comment #1 from le_afo le_afo@gmx.net 2008-12-05 07:45:07 --- that was an easy one ;-)
http://bugs.winehq.org/show_bug.cgi?id=16344
--- Comment #2 from Austin English austinenglish@gmail.com 2008-12-05 12:08:36 --- Please send patches to wine-patches@winehq.org
http://bugs.winehq.org/show_bug.cgi?id=16344
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|le_afo@gmx.net | OS/Version|All |other Platform|All |Other
http://bugs.winehq.org/show_bug.cgi?id=16344
Christian Costa titan.costa@wanadoo.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |titan.costa@wanadoo.fr
--- Comment #3 from Christian Costa titan.costa@wanadoo.fr 2009-01-02 06:08:26 --- Fix is in git. This bug can be closed now.
http://bugs.winehq.org/show_bug.cgi?id=16344
Jeff Zaroyko jeffz@jeffz.name changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #4 from Jeff Zaroyko jeffz@jeffz.name 2009-01-02 06:22:33 --- reported fixed
http://bugs.winehq.org/show_bug.cgi?id=16344
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2009-01-02 10:34:17 --- Closing bugs fixed in 1.1.12.