Message140638
| Author |
vstinner |
| Recipients |
Arfrever, Nicholas.Cole, akuchling, cben, gpolo, inigoserna, python-dev, r.david.murray, schodet, vstinner, zeha |
| Date |
2011年07月19日.00:26:28 |
| SpamBayes Score |
0.004625647 |
| Marked as misclassified |
No |
| Message-id |
<1311035189.33.0.022651333168.issue12567@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Using curses_unicode.patch:
- without ncursesw: addch('é') raises an OverflowError because 'é'.encode('UTF-8') is 2 bytes and not 1 byte
- with ncursesw: the charset is displayable character depends on the locale encoding (e.g. € cannot be printed with ISO-8859-1 locale encoding)
- with ncursesw: any character can be printed with a UTF-8 locale encoding (including non-BMP characters: U-10000..U+10FFFF)
It would be possible to support multibyte encoded character (like é in UTF-8) for addch() by calling addch() multiple times, one per byte, but I would prefer to keep _curses simple and not workaround libncurses limitations (bugs). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月19日 00:26:29 | vstinner | set | recipients:
+ vstinner, akuchling, cben, gpolo, Arfrever, r.david.murray, inigoserna, zeha, schodet, python-dev, Nicholas.Cole |
| 2011年07月19日 00:26:29 | vstinner | set | messageid: <1311035189.33.0.022651333168.issue12567@psf.upfronthosting.co.za> |
| 2011年07月19日 00:26:28 | vstinner | link | issue12567 messages |
| 2011年07月19日 00:26:28 | vstinner | create |
|