https://bugs.winehq.org/show_bug.cgi?id=47615
Bug ID: 47615 Summary: _putws outputs NULs, other wchar.h functions don't Product: Wine Version: 3.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: msvcrt Assignee: wine-bugs@winehq.org Reporter: dmo2118@gmail.com Distribution: ---
Created attachment 65041 --> https://bugs.winehq.org/attachment.cgi?id=65041 Test program
This seems inconsistent:
$ i686-w64-mingw32-gcc -Wall -municode -mconsole putws-test.c $ wine a.exe | hexdump -C 00000000 70 00 75 00 74 00 77 00 73 00 0d 0a 00 66 70 75 |p.u.t.w.s....fpu| 00000010 74 77 73 0d 0a 77 70 72 69 6e 74 66 0d 0a 77 66 |tws..wprintf..wf| 00000020 70 72 69 6e 74 66 0d 0a 63 0d 0a |printf..c..| 0000002b
Expected behavior: "putws" outputs as 70 75 74 77 73, without the 00s in between.
I concede I am not running up-to-date development Wine. I'm having trouble installing it, and I don't know how long that would take to fix. Given the source code I've looked at, I have reason to believe that this still affects current Wine.
$ wine --version wine-3.0 (Ubuntu 3.0-1ubuntu1) $ lsb_release -d Description: Ubuntu 18.04.3 LTS
https://bugs.winehq.org/show_bug.cgi?id=47615
--- Comment #1 from dmo2118@gmail.com --- Created attachment 65042 --> https://bugs.winehq.org/attachment.cgi?id=65042 Proposed patch (untested)
I don't have a working Wine build environment, but does wine-msvcrt-putws-char-at-a-time.patch work?
https://bugs.winehq.org/show_bug.cgi?id=47615
dmo2118@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #65041|Test program |putws-test.c description| |
https://bugs.winehq.org/show_bug.cgi?id=47615
dmo2118@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #65042|Proposed patch (untested) |wine-msvcrt-putws-char-at-a description| |-time.patch
https://bugs.winehq.org/show_bug.cgi?id=47615
Alistair Leslie-Hughes leslie_alistair@hotmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch
https://bugs.winehq.org/show_bug.cgi?id=47615
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW
--- Comment #2 from Nikolay Sivov bunglehead@gmail.com --- I was able to reproduce.
https://bugs.winehq.org/show_bug.cgi?id=47615
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED CC| |piotr.caban@gmail.com Fixed by SHA1| |3577f06f719e854513d1015f33a | |a78c506ad3f32 Status|NEW |RESOLVED
--- Comment #3 from Piotr Caban piotr.caban@gmail.com --- It's fixed by 3577f06f719e854513d1015f33aa78c506ad3f32.
https://bugs.winehq.org/show_bug.cgi?id=47615
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.18.
https://bugs.winehq.org/show_bug.cgi?id=47615
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=47615
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #5 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.4.