Serhiy Storchaka added the comment: The problem (as I understand it) is that if Martin's patch fixes an unicode literals, it breaks a string literals.
LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python Lib/idlelib/idle.py >>> print u'йцук' йцук >>> print 'йцук' йцук Here is a different patch, which fixes unicode strings and preserve byte strings. >>> print u'йцук' йцук >>> print 'йцук' йцук ---------- nosy: +kbk, roger.serwy Added file: http://bugs.python.org/file29974/idle_compile_coding_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15809> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com