Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1152141ybi; Fri, 14 Jun 2019 09:27:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzYhJHTVFEjvDTgqFau70gN8vzIqLbO/93v/WPnswyyWCzNcyW9SRYZT8N7nknXWzCq0R8T X-Received: by 2002:a63:68b:: with SMTP id 133mr35205081pgg.385.1560529639710; Fri, 14 Jun 2019 09:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560529639; cv=none; d=google.com; s=arc-20160816; b=DyfYlDELwVhVjaEYai8Ju/hiTMVaSlyoJNVp7Gu3F+Yk5Us8e+ITbE7tilYOLN1f7Z OqlOTZZ08VgEw44LYyfqsiD+xQVg7MDAFVdgJdgGl1bC8RORxXKpcNWvRa0xwE0PCJKg 8E/Z5PlSAZPCWIuPziM19ECU1fyxQJ6ia2fOouJawx+FxYlBZCG5FGyjMw3Lm+0wPPG2 fYq01HAyPH4a77or4NWdUv8FRjfQhjw0K3BWP6YjvV7o5RphgW05jPA8hyLEIX4OJIW+ /rfwQANnSHvL3UZ45MCDM3WzYXDJ9qFWelKMMPv52nFy7pYTh/nsso1eYcu9kdGtLfS1 G6qw== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=IcB8Qtn20XD6wa+i2Z9SDUlZtL7QkC604Nkf72H6uDU=; b=X/CykCo9RBT/GGNdfZAW1BxJ0Up39G4HRgAAAfOIvcovJTXAizVhVBfcA+08ZbLhng VrX8zLY1oaoCoalw54QAsWVmxXbPlyRuKS84+vIbRu1nd+nrXNoXlbpPh0h3Zg1vJXbl 5ssVE881E/VLU5XDyR380OhDFYUip13NAKr1Ib8eGDJ9eqWOttN70x2a+66oHfyTzEZf vL7h6ZBDpuAsPdynDSRjRNLZ05PKPwohEhOuVQx+/YHL6S7oFa/7NCRdFe37H5FqobsX fHiWOHCRpWq/VbO/Q4vS6ybs1yOCN6kEIiselVHxly4tDd1lgSext+bF9aGfti3Yo0Cu HdxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ctsVO+si; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u38si2942859pgm.538.2019.06.14.09.27.04; Fri, 14 Jun 2019 09:27:19 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ctsVO+si; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725908AbfFNQZh (ORCPT + 99 others); Fri, 14 Jun 2019 12:25:37 -0400 Received: from casper.infradead.org ([85.118.1.10]:51562 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725801AbfFNQZh (ORCPT ); Fri, 14 Jun 2019 12:25:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IcB8Qtn20XD6wa+i2Z9SDUlZtL7QkC604Nkf72H6uDU=; b=ctsVO+sierkxgO6mEY+Zu89VZL fbNLcgtVP7hVjxhraq4u5XHoEd/3a7Gg+TGKFrIZgiCl5RvX2g8pXk3Vw7ZJvDDNStpwZY2xL4A3H u+fQ9fSQZgbIlaPKWLZ01GgvCkRo4AeoOJf3+NCMdnAhAAzoSwNO7KkodhvWjHLm34KD6GZI2EGR0 YpKBfXA3yVaw/TRklXHZFKY1NOqCQkamZbVPq3RCO6DaxEyRU9tJBbTVlgZ5I9DVhBLFJEdK6WwUI Z3g8/0ZsazIQ/UWN6kyG8lWAIWsf3wkzbXYBshKNfIVPnVlXjd/THG03Y1NSjDphSfV8vOasd3tGT AUo77vCA==; Received: from 177.133.85.52.dynamic.adsl.gvt.net.br ([177.133.85.52] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hbp1B-0003It-Te; Fri, 14 Jun 2019 16:25:34 +0000 Date: Fri, 14 Jun 2019 13:25:30 -0300 From: Mauro Carvalho Chehab To: Greg Kroah-Hartman Cc: Linux Doc Mailing List , Mauro Carvalho Chehab , linux-kernel@vger.kernel.org, Jonathan Corbet Subject: Re: [PATCH 14/14] docs: sphinx/kernel_abi.py: fix UTF-8 support Message-ID: <20190614132530.7a013757@coco.lan> In-Reply-To: <20190614161837.GA25206@kroah.com> References: <62c8ffe86df40c90299e80619a1cb5d50971c2c6.1560477540.git.mchehab+samsung@kernel.org> <20190614161837.GA25206@kroah.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 14 Jun 2019 18:18:37 +0200 Greg Kroah-Hartman escreveu: > On Thu, Jun 13, 2019 at 11:04:20PM -0300, Mauro Carvalho Chehab wrote: > > The parser breaks with UTF-8 characters with Sphinx 1.4. > > > > Signed-off-by: Mauro Carvalho Chehab > > --- > > Documentation/sphinx/kernel_abi.py | 10 ++++++---- > > 1 file changed, 6 insertions(+), 4 deletions(-) > > > > diff --git a/Documentation/sphinx/kernel_abi.py b/Documentation/sphinx/kernel_abi.py > > index 7fa7806532dc..460cee48a245 100644 > > --- a/Documentation/sphinx/kernel_abi.py > > +++ b/Documentation/sphinx/kernel_abi.py > > @@ -1,4 +1,5 @@ > > -# -*- coding: utf-8; mode: python -*- > > +# coding=utf-8 > > +# > > Is this an emacs vs. vim fight? No. This is a python-specific thing: https://www.python.org/dev/peps/pep-0263/ > > Why change this? Just to keep the "header" part of the script closer to kerneldoc.py. You may keep the previous syntax if you want, as both ways are equally recognized, as python actually checks for anything that matches this regex at the first or second line: ^[ \t\f]*#.*?coding[:=][ \t]*([-_.a-zA-Z0-9]+) Thanks, Mauro