On Thu, 5 Sep 2019 16:28:10 -0300
Mauro Carvalho Chehab <mchehab+sams...@kernel.org> wrote:

> I don't think we can count that python 3 uses utf-8 per default.
> 
> I strongly suspect that, if one uses a Python3 version < 3.7, it will
> still default to ASCII.
> 
> On a quick look, the new UTF-8 mode was added on PEP-540:
> 
>       https://www.python.org/dev/peps/pep-0540/
> 
> Such change happened at Python 3.7. 

That PEP is to override the locale and use utf8 unconditionally.  It
says, with regard to the pre-PEP state:

        UTF-8 is also the default encoding of Python scripts, XML and JSON
        file formats.

Unicode was the reason for much of the Python 3 pain; it seems unlikely
that many installations are defaulting to ASCII anyway...?

jon

Reply via email to