INADA Naoki <songofaca...@gmail.com> added the comment: > Only reason I can see to avoid this would be if the codec names could contain > arbitrary Unicode encoded as UTF-8 (and therefore strlen wouldn't tell you > the final length in Unicode ordinals), but I'm pretty sure that's not the > case (if it is, we're not normalizing properly, since we only lower case > ASCII). If Unicode codec names need to be handled, there are other options, > though the easy savings go away.
Maybe, we can add "encoding name must be ascii" restriction in future version (3.8+). But for now, I want to avoid any potential backward incompatibility. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33231> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com