[New-bugs-announce] curses textpad module can input/output chinese character.
guohua huang
2008.psbc at gmail.com
Thu Sep 10 10:59:47 CEST 2009
curses
textpad.py
class Textbox:
def do_command(self, ch):
line 67
old : if ascii.isprint(ch) :
update: if ascii.isprint(ch) or ( ch < curses.KEY_MIN and ascii.ismeta(ch)
) :
解决了中文字符的输入,
resolved chinese character input
line 144
old : result = result +
chr(ascii.ascii(self.win.inch(y, x)))
update: result = result + chr(self.win.inch(y, x))
解决了中文字符的输出,
resolv chinese character output
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/new-bugs-announce/attachments/20090910/f7ea1088/attachment.htm>
More information about the New-bugs-announce
mailing list