Message92019
| Author |
vstinner |
| Recipients |
Trundle, vstinner |
| Date |
2009年08月27日.22:31:54 |
| SpamBayes Score |
4.0115922e-10 |
| Marked as misclassified |
No |
| Message-id |
<1251412316.62.0.405236215253.issue6745@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
First, make sure that your Python3 build uses libncursesw and not
libncurses, because libncursesw supports unicode, whereas libncurses
doesn't... On UNIX, use the following command to check this:
ldd $(./python -c "import _curses; print(_curses.__file__)")|grep curses
> Note that the output here always seems to be utf-8,
> which is plain wrong.
Yes, addstr() always uses utf8 to convert unicode to bytes. It's wrong
if the terminal uses a different charset. But I'm not sure that using
bytes is a better idea: since you would like to print characters,
unicode is the right type.
An idea would be to use a configurable charset. Eg. add a 'charset'
attribute to a window (or to the module). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年08月27日 22:31:56 | vstinner | set | recipients:
+ vstinner, Trundle |
| 2009年08月27日 22:31:56 | vstinner | set | messageid: <1251412316.62.0.405236215253.issue6745@psf.upfronthosting.co.za> |
| 2009年08月27日 22:31:55 | vstinner | link | issue6745 messages |
| 2009年08月27日 22:31:54 | vstinner | create |
|