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.

作者 Trundle
收信人 Trundle
日期 2009-08-20.21:54:52
SpamBayes Score 1.3996748e-11
Marked as misclassified
Message-id <1250805293.93.0.390407784339.issue6745@psf.upfronthosting.co.za>
In-reply-to
内容
In Python 3, curses requires a str for addstr() where I think it should
take bytes instead. Otherwise it is impossible to output anything other
than ASCII (which is even more or less stated on top of curses'
documentation).

See the attached script "umlaut2x.py" for Python 2.6: Outputting
umlauts works fine, both in single-byte and multi-byte environments.

The attached script "umlaut3x.py" is the same script translated to
Python 3. Note that the output here always seems to be utf-8, which is
plain wrong.

A quick test where I changed addstr() to take bytes instead of str
confirmed that outputting other characters than ASCII would work then
in Python 3, too. There are perhaps more places where the types are
wrong. If someone confirms this issue and it is desired, I could
provide a patch.
历史
日期 用户 动作 参数
2009-08-20 21:54:54Trundle修改recipients: + Trundle
2009-08-20 21:54:53Trundle修改messageid: <1250805293.93.0.390407784339.issue6745@psf.upfronthosting.co.za>
2009-08-20 21:54:52Trundle链接issue6745 messages
2009-08-20 21:54:52Trundle创建