Johannes Berg <johan...@sipsolutions.net> added the comment:

In fact that python one-liner works with just about everything else that you 
can throw at it, just not something that "looks like utf-8 but isn't".

And of course adding LC_CTYPE=ascii or something like that fixes it, as you'd 
expect. Then the "surrogateescape" works fine, since mbstowcs() won't try to 
decode it as utf-8.

----------

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

Reply via email to