Xavier de Gaye added the comment:

Checking that the the problem is indeed an encoding problem on Android with 
readline.set_pre_input_hook(): with tracing_the_completer_2.patch that replaces 
'\xEB' with 'A', the test now succeeds and prints:

test_nonascii (test.test_readline.TestReadline) ... 
bytearray(b"^A^B^B^B^B^B^B^B\t\tx\t\r\n[\\303\\257nserted]|tA[after]\x08\x08\x08\x08\x08\x08\x08text
 \'tA\'\r\nline \'[\\xefnserted]|tA[after]\'\r\nindexes 11 13\r\n\x07text 
\'tA\'\r\nline \'[\\xefnserted]|tA[after]\'\r\nindexes 11 13\r\nsubstitution 
\'tA\'\r\nmatches [\'tAnt\', 
\'tAxt\']\r\nx[after]\x08\x08\x08\x08\x08\x08\x08t[after]\x08\x08\x08\x08\x08\x08\x08\r\nresult
 \'[\\xefnserted]|tAxt[after]\'\r\nhistory 
\'[\\xefnserted]|tAxt[after]\'\r\ncompleter [\'tA-0\', \'GOT 1\', \'tA-1\', 
\'GOT 2\', \'tA-2\', \'tA-0\', \'GOT 1\', \'tA-1\', \'GOT 2\', \'tA-2\', 
\'tAx-0\', \'GOT 3\', \'tAx-1\']\r\n")
ok

----------
Added file: http://bugs.python.org/file45956/tracing_the_completer_2.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28997>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to