From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0884BC43331 for ; Thu, 5 Sep 2019 19:40:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 66F8E20825 for ; Thu, 5 Sep 2019 19:40:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391318AbfIETkL (ORCPT ); Thu, 5 Sep 2019 15:40:11 -0400 Received: from ms.lwn.net ([45.79.88.28]:58484 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388174AbfIETkK (ORCPT ); Thu, 5 Sep 2019 15:40:10 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id CF9407DA; Thu, 5 Sep 2019 19:40:09 +0000 (UTC) Date: Thu, 5 Sep 2019 13:40:08 -0600 From: Jonathan Corbet To: Mauro Carvalho Chehab Cc: Linux Media Mailing List , Mauro Carvalho Chehab , Greg Kroah-Hartman , Joe Perches , linux-kernel@vger.kernel.org, Jessica Yu , Federico Vaga , Thomas Gleixner , linux-doc@vger.kernel.org Subject: Re: [PATCH] docs: license-rules.txt: cover SPDX headers on Python scripts Message-ID: <20190905134008.57cd3e89@lwn.net> In-Reply-To: <20190905162810.2388d532@coco.lan> References: <20190905055614.7958918b@coco.lan> <88e638eb959095ab6657d295f9f8c27169569bf2.1567675272.git.mchehab+samsung@kernel.org> <20190905065701.4744e66a@lwn.net> <20190905162810.2388d532@coco.lan> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 5 Sep 2019 16:28:10 -0300 Mauro Carvalho Chehab 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