Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1455559ybe; Thu, 5 Sep 2019 16:03:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyieDzJwwfL59b8OHBZ8Wx91B7qT73gMm9DhUb+mI0e3Kt8b7ABGV/DphXt5L+1VpEVJu39 X-Received: by 2002:a17:902:be0f:: with SMTP id r15mr6167615pls.287.1567724581348; Thu, 05 Sep 2019 16:03:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567724581; cv=none; d=google.com; s=arc-20160816; b=BZjbgg7ZTN7PbtK7YAk0wvYnUa0e4keeARwH86NtJbre6VXmhBp9yabJG6fEq2LyHT bE01VwAvWGfLOPgWS4+UfuKTQiSZQ3/VCz2sF5T4B3fOi3xL7uCnajTDyf6ZWuGN+FSI /t0qhupnlSHXnNf3wkgvPwZxEZfSiIyvf/yXK4hlyN5hQzMNnSMx7JrdbGov9ph28a4E iRDobeC0XPNujlBb2lQB6KoCMW1tWD9eM9UnBtN2azFiHbBOaRmIMIij0AyFSLf9rvgC 5M4LHJRxFhaBR1T/JtGNE3S65+Fn4bQ90B6MhPYlalpgfOfkiwTKIgtPFWvDaiv3shDP QFzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=BBZ6qpZEHxO7iNpNM3ny7lb8YeLG4YYTaQMNuwTpeKs=; b=QXKQMw905q65hCMZtoHmCvqId9WfPXgoDDngdhV6pS5Kk1KBQ9nk3SOmSWLCLLRphQ ddrYB8RLKdfuCyUkWfQPv1CNx5bDq4RIeDIvy0C6Qg5hhNqxN2rOtIo7DkMxN5vm5g4N V6AYqtKnHfrvKOpEcny5Rf4KVOJyXLGX4+gG4vIraT/kNO7y5OOEipbdQbgvISgtwD7i ajp/016ygTuVAKCBPk/nEeYxh8FB9e93UJQi4bI6ElzXMrXXgAsoKERhhP6AwDeGhMh6 0sFZr5vvuZ2jPXeq+jsN47hORz1II8bhXd33c+6EXUmX+AZnpii3dvsL8pzdYWp6v2Bn CKbQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v127si3752756pfb.67.2019.09.05.16.02.39; Thu, 05 Sep 2019 16:03:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391308AbfIETkL (ORCPT + 99 others); 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