From patchwork Thu Sep 20 11:28:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luca Coelho X-Patchwork-Id: 10607523 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EC2481508 for ; Thu, 20 Sep 2018 11:28:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB0182D09B for ; Thu, 20 Sep 2018 11:28:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF9552D0A8; Thu, 20 Sep 2018 11:28:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8892D2D09B for ; Thu, 20 Sep 2018 11:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731580AbeITRLz (ORCPT ); Thu, 20 Sep 2018 13:11:55 -0400 Received: from paleale.coelho.fi ([176.9.41.70]:50974 "EHLO farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727029AbeITRLy (ORCPT ); Thu, 20 Sep 2018 13:11:54 -0400 Received: from 91-156-4-241.elisa-laajakaista.fi ([91.156.4.241] helo=redipa.ger.corp.intel.com) by farmhouse.coelho.fi with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.91) (envelope-from ) id 1g2x8d-0004SQ-4S; Thu, 20 Sep 2018 14:28:51 +0300 From: Luca Coelho To: backports@vger.kernel.org Cc: Luca Coelho Date: Thu, 20 Sep 2018 14:28:33 +0300 Message-Id: <20180920112842.27198-6-luca@coelho.fi> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180920112842.27198-1-luca@coelho.fi> References: <20180920112842.27198-1-luca@coelho.fi> Subject: [PATCH 05/14] backport: convert tree section names to ascii Sender: backports-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: backports@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Luca Coelho For some reason, sometimes when the git logs contain non-ascii characters, we get some conversion errors. This only happens if one of the strings we use is explicitly unicode, otherwise everything is fine. The only string we use that is of unicode type is the tree names that comes from the configuration sections. To avoid issues, convert the strings we get from the config file into ascii before using it. Signed-off-by: Luca Coelho --- devel/git-tracker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devel/git-tracker.py b/devel/git-tracker.py index 1789ad975154..d51f59ba6507 100755 --- a/devel/git-tracker.py +++ b/devel/git-tracker.py @@ -190,6 +190,8 @@ if __name__ == '__main__': backport_rev = git.rev_parse(tree=source_dir) for tree in trees: + # make sure tree is ascii to prevent conversion problems + tree = str(tree) input = config.get(tree, 'input') output = config.get(tree, 'output') defconfig = None