Message132192
| Author |
takluyver |
| Recipients |
takluyver |
| Date |
2011年03月26日.00:28:38 |
| SpamBayes Score |
4.6602938e-05 |
| Marked as misclassified |
No |
| Message-id |
<1301099319.36.0.392064400408.issue11679@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
To replicate, in Python 3.1 on Linux (utf-8 console):
>>> print(chr(0x9000))
退
Copy and paste this character into the prompt. It appears correctly (as a Chinese character). Then:
>>> import readline
>>> readline.parse_and_bind('"\M-i":" "')
Now try to paste the character again: it appears as " ��"
(four spaces, two unknown character symbols), and if you press return, you get a SyntaxError.
This happens with all characters beginning with \xe9: In UTF-8, that's 0x9000-0x9fff. If the terminal encoding is changed to cp1252, I'm told that the same thing can be achieved with é, which is \xe9 there. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年03月26日 00:28:39 | takluyver | set | recipients:
+ takluyver |
| 2011年03月26日 00:28:39 | takluyver | set | messageid: <1301099319.36.0.392064400408.issue11679@psf.upfronthosting.co.za> |
| 2011年03月26日 00:28:38 | takluyver | link | issue11679 messages |
| 2011年03月26日 00:28:38 | takluyver | create |
|