lkml.org 
[lkml]   [2019]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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@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

\
 
 \ /
  Last update: 2019-09-05 21:40    [W:0.018 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site