Catalin Iacob <iacobcata...@gmail.com> added the comment: Attached alternative patch with a different approach: on input, strings are encoded as bytes and the rest of the code proceeds as before.
All existing tests for bytes now test for strings as well and there is a new test for strings with non ASCII characters. Berker's patch was more intrusive and forgot to allow strings in _translate, leading to failures if altchars or map01 were used. ---------- nosy: +catalin.iacob Added file: http://bugs.python.org/file24533/issue13641-alternative-v1.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13641> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com