Re: Making Python's curses module work with Unicode

2012-09-02 Thread Vitaly Magerya
Li-Wen Hsu wrote: > On Sat, Sep 1, 2012 at 5:12 AM, Vitaly Magerya wrote: >> Can I have a brave committer to either accept the patch (in which >> case I'll work on the same for other python versions), or point >> me to whatever problems it may trigger (in which case, I'll test >> for them)? > > T

Re: Making Python's curses module work with Unicode

2012-09-02 Thread Li-Wen Hsu
On Sat, Sep 1, 2012 at 5:12 AM, Vitaly Magerya wrote: > Can I have a brave committer to either accept the patch (in which > case I'll work on the same for other python versions), or point > me to whatever problems it may trigger (in which case, I'll test > for them)? Hi Vitaly, Thanks for workin

Making Python's curses module work with Unicode

2012-08-31 Thread Vitaly Magerya
Hi, folks. I'm having a problem with Python curses module: it won't work with unicode. Here's a test case: import curses import locale locale.setlocale(locale.LC_ALL, "") def run(win): win.addstr(u"\u03c0r\u00b2".encode("utf-8")) win.getch() curses.wrapper(ru