STINNER Victor <victor.stin...@haypocalc.com> added the comment: Here is a first patch to add a method setcharset() to the window class.
Using my patch, you can fix your example by adding the line: screen.setcharset(<your charset>) before addstr(). It's an initial hack to fix the issue. Next steps are: - use something better than utf8 as the default charset, maybe locale.getpreferredencoding() - copy the charset on new window creation? ---------- keywords: +patch Added file: http://bugs.python.org/file14792/curses_charset.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6745> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com