[Bug 27229] printf() newline missing with multibyte strings

wine-bugs at winehq.org wine-bugs at winehq.org
Sat Oct 8 03:48:14 CDT 2011


--- Comment #5 from Eric Pouech <eric.pouech at 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
- 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) ?


Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list