Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp365008imu; Wed, 12 Dec 2018 18:52:27 -0800 (PST) X-Google-Smtp-Source: AFSGD/X2Q9HUVMUdaE8dqToOMKy8lHQ4M0pelG7lr53oDs/hL/nZkApsDLLwmtmXkUZvMDlyqo6q X-Received: by 2002:a62:a209:: with SMTP id m9mr22965054pff.218.1544669547643; Wed, 12 Dec 2018 18:52:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544669547; cv=none; d=google.com; s=arc-20160816; b=Ta+6vm+Gg48A4KSs/1mxFq3XkRtWtDDwjLENOaKPUlgZla9l0ZC+5rOLTFrf2yezJM giCys/Wm3h6iPiOFriMFMY2RSGruxjqKoYjUNL3kKNulT7FVbiqnlB9683dNQ5vEv4Y4 FD4rQHJBnrYRFfrEV21KGggMWXPL3uWWg02n5abG2Lr2Q5/mtz9iZyrdtnk7ppdLp7yV CSe9O6fJsbAEc74YNmAoH5tFDVl1LoFhswcZ5lOcQilIMYXCfJZ7LstqRIx/c18TBYqs xqEkvyqw/+qVJ3mYL8QP0+Htt6/JnC6oVzSennHl/tad2kYwRpQG4i4ip0/HRm5yGrLu mSTQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=AJuniC8JJXBXWWMvx5vxbfV6rVOH5JeUpl+AKGdEB78=; b=Qhx4PglsQ23vdT/8cRXJU9kslDJuIOv5O4A75IP2Ms1AP06SElvg6/n/iTLoq9SVLI X/LZmSslDAE4pOGzjlnBLLV2nJIigROvAasdVx8sSiiCRxqCK6Z2GF8VronE+WSXjNwO 88wbPfcNYKzSbmuMkrVn0MVEXDRLvb+Ec3tNz1ozaYc/9kEkkq6RjSpYsiBN7EmNTFzn JhSgquCaLMQaQMUj72iWPSmyqlTOVOi/5kKrLRZRKjYYBwbQhrEHsMC5Pf6xfvOMEei0 fhzmjTIyyJ03TeUnwtei283OD+UvCiBLzFMnxUctyM8DY/39VTevdt3tx/Yf0b5XfM4q vqag== 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 m64si485710pfb.224.2018.12.12.18.52.12; Wed, 12 Dec 2018 18:52:27 -0800 (PST) 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 S1726609AbeLMCvX (ORCPT + 99 others); Wed, 12 Dec 2018 21:51:23 -0500 Received: from smtprelay0080.hostedemail.com ([216.40.44.80]:40056 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726344AbeLMCvX (ORCPT ); Wed, 12 Dec 2018 21:51:23 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id DF88018014B01; Thu, 13 Dec 2018 02:51:21 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:599:973:982:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3350:3622:3865:3867:3868:3870:3871:3872:3874:4321:5007:10004:10400:10848:11232:11658:11914:12740:12760:12895:13069:13311:13357:13439:14181:14659:21080:21627:21740:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: dock83_45efa883e5c09 X-Filterd-Recvd-Size: 1539 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Thu, 13 Dec 2018 02:51:20 +0000 (UTC) Message-ID: <642dd9ea144c03041ad74b14777553fe652acd1a.camel@perches.com> Subject: Re: [PATCH 1/2] scripts/spdxcheck.py: Always open files in binary mode From: Joe Perches To: Jeremy Cline , Thierry Reding Cc: Andrew Morton , Thomas Gleixner , Jonathan Corbet , Uwe =?ISO-8859-1?Q?Kleine-K=F6nig?= , linux-kernel@vger.kernel.org Date: Wed, 12 Dec 2018 18:51:19 -0800 In-Reply-To: <20181212181410.GC2352@laptop.jcline.org> References: <20181212131210.28024-1-thierry.reding@gmail.com> <20181212181410.GC2352@laptop.jcline.org> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2018-12-12 at 13:14 -0500, Jeremy Cline wrote: > It might be worth noting this fixes commit 6f4d29df66ac > ("scripts/spdxcheck.py: make python3 compliant") umm, how does it do that? > and also Cc this for > stable since 6f4d29df66ac got backported to v4.19. While that commit > did indeed make the script work with Python 3 for piping data, it broke > Python 2 and made its way to stable. I think attempting to use spdxcheck on binary files is not useful in the first place.