http://bugs.winehq.org/show_bug.cgi?id=27229
--- Comment #5 from Eric Pouech eric.pouech@orange.fr 2011-10-08 03:48:14 CDT --- to add a couple of more tests: - if you replace the MBCS string by a 7bit ANSI string, you get the same behavior - if you print several strings in the tests program (instead of a single one), you don't get extra new lines between the strings (only a missing newline is to be seen at the end of the output) - if you run the test program under cmd and not under a unix shell, you get the expected behavior - cmd rightfully (as windows' cmd does) start any prompt by a \r\n sequence
therefore, I conclude that: - wine printf & console code is correct (doesn't miss any conversion) - unix shell (at least bash) doesn't start the prompt by a new line unlike cmd - I don't see an easy fix (except printing the newline at program exit when it knows it's run from a unix shell - ie it doesn't have a windows' parent)
Alexander => can you confirm this on your side (just to be sure I didn't misunderstand you bug report) ?
A+