[issue19846] Setting LANG=C breaks Python 3 on Linux

Marc-Andre Lemburg report at bugs.python.org
Mon Dec 9 11:30:12 CET 2013


Marc-Andre Lemburg added the comment:

On 09.12.2013 11:19, STINNER Victor wrote:
> 
> STINNER Victor added the comment:
> 
> Marc-Andre> AFAIK, Python 3 does work with ASCII data in the C locale, so I'm not sure whether this is a bug at all.
> 
> What do you mean? Python uses the surrogateescape encoding since Python 3.1, undecodable bytes are stored as surrogate characters.
> 
> Many bugs related to locales were fixed in Python 3.2, 3.3 and 3.4.
> 
> There are remaining bugs?

I was referring to the original bug report on this ticket.

FWIW: I don't think you can expect Python to work without exceptions
if you use a C locale and write non-ASCII data to stdout. I also
don't think that the new ticket title is correct - or at least,
I fail to see which aspect of Python breaks with LANG=C :-)

----------

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


More information about the Python-bugs-list mailing list