Ezio Melotti <ezio.melo...@gmail.com> added the comment: Here the issue might be different though. Does $ LC_ALL=ru_RU.koi8-r python3.0 -c 'import time;time.strftime("%A")' (without the print) work?
I don't have the ru_RU locale but here time.strftime() return 'str', not 'bytes' and the utf-8 codec should be able to encode it: >>> time.strftime("%A") 'Saturday' >>> type(_) <class 'str'> ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5903> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com