[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190905134008.57cd3e89@lwn.net>
Date: Thu, 5 Sep 2019 13:40:08 -0600
From: Jonathan Corbet <corbet@....net>
To: Mauro Carvalho Chehab <mchehab+samsung@...nel.org>
Cc: Linux Media Mailing List <linux-media@...r.kernel.org>,
Mauro Carvalho Chehab <mchehab@...radead.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Joe Perches <joe@...ches.com>, linux-kernel@...r.kernel.org,
Jessica Yu <jeyu@...nel.org>,
Federico Vaga <federico.vaga@...a.pv.it>,
Thomas Gleixner <tglx@...utronix.de>, linux-doc@...r.kernel.org
Subject: Re: [PATCH] docs: license-rules.txt: cover SPDX headers on Python
scripts
On Thu, 5 Sep 2019 16:28:10 -0300
Mauro Carvalho Chehab <mchehab+samsung@...nel.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
Powered by blists - more mailing lists