This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author helmut
Recipients helmut
Date 2013-06-02.10:14:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1370168042.56.0.867946170074.issue18118@psf.upfronthosting.co.za>
In-reply-to
Content
Consider the test case below.

<<<
#!/usr/bin/python
# -*- encoding: utf8 -*-

import curses

def wrapped(screen):
    screen.addstr(0, 0, "ä")
    screen.addstr(0, 1, "ö")
    screen.addstr(0, 2, "ü")
    screen.getch()

if __name__ == "__main__":
    curses.wrapper(wrapped)
>>>

Expected output: "äöü"
Output on py3.3: as expected
Output on py2.7.3: "?ü"
The actual bytes (as determined by strace) were "\303\303\303\274". Observe the inclusion of broken utf8 sequences.

This issue was initially discovered on Debian sid, but independently confirmed on Arch Linux and two more unknown.
History
Date User Action Args
2013-06-02 10:14:02helmutsetrecipients: + helmut
2013-06-02 10:14:02helmutsetmessageid: <1370168042.56.0.867946170074.issue18118@psf.upfronthosting.co.za>
2013-06-02 10:14:02helmutlinkissue18118 messages
2013-06-02 10:14:02helmutcreate