[issue16182] readline: Wrong tab completion scope indices in Unicode terminals

Martin Panter report at bugs.python.org
Tue May 31 09:51:44 EDT 2016


Martin Panter added the comment:

Attached patch adds a possible test, and fixes the truncation problem I mentioned above.

I tried testing set_completer_delims() with a UTF-8 locale, but I suspect Gnu Readline does not support it. I called set_completer_delims("\xF6"), which encodes as C3 B6, but it seems to be breaking any UTF-8 sequence in half at a C3 byte. In other words, it is treating the delimiter list as a list of bytes, not code points. So I changed to an ASCII delimiter.

----------
Added file: http://bugs.python.org/file43067/readline_locale.v2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16182>
_______________________________________


More information about the Python-bugs-list mailing list