Xavier de Gaye added the comment:

The test is ok on Android when LANG=en_US.UTF-8.
When LANG is not set, the check made by the first statement in test_nonascii() 
should skip the test but fails to skip it on Android as Py_EncodeLocale() 
always encode to utf8 whatever the locale (same as with darwin).
This patch adds a second check to verify that readline does handle multi bytes 
characters and does skip the test if not. So on Android the test is skipped now 
when LANG is not set.  Another solution would have been to set LANG=en_US.UTF-8 
in the environment of the process forked by run_pty(), but it does not sound 
robust as there may be other setups where readline does not handle multi bytes 
characters.

----------
Added file: http://bugs.python.org/file45976/readline_multibyte.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