Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933224AbcKDK2C (ORCPT ); Fri, 4 Nov 2016 06:28:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:55669 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750763AbcKDK2B (ORCPT ); Fri, 4 Nov 2016 06:28:01 -0400 From: Jiri Slaby To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, Jiri Slaby , Joe Perches Subject: [PATCH] scripts: get_maintainer.pl, remove \xa0 from the script Date: Fri, 4 Nov 2016 11:27:58 +0100 Message-Id: <20161104102758.2622-1-jslaby@suse.cz> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org My perl v5.24.0 complains when running the get_maintainer.pl script as follows: Unrecognized character \xA0; marked by <-- HERE after <-- HERE near column 1 at ./scripts/get_maintainer.pl line 277. It is weird to have ascii non-breaking spaces in a script, so do: s/\xa0/ /g Signed-off-by: Jiri Slaby Cc: Joe Perches --- scripts/get_maintainer.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/get_maintainer.pl b/scripts/get_maintainer.pl index 96cd97bcec4b..633f2dd3de27 100755 --- a/scripts/get_maintainer.pl +++ b/scripts/get_maintainer.pl @@ -274,7 +274,7 @@ $output_rolestats = 1 if ($interactive); $output_roles = 1 if ($output_rolestats); if ($sections || $letters ne "") { -    $sections = 1; + $sections = 1; $email = 0; $email_list = 0; $scm = 0; @@ -685,10 +685,10 @@ sub get_maintainers { $line =~ s/\\\./\./g; ##Convert \. to . $line =~ s/\.\*/\*/g; ##Convert .* to * } -     my $count = $line =~ s/^([A-Z]):/$1:\t/g; -     if ($letters eq "" || (!$count || $letters =~ /$1/i)) { + my $count = $line =~ s/^([A-Z]):/$1:\t/g; + if ($letters eq "" || (!$count || $letters =~ /$1/i)) { print("$line\n"); -     } + } } print("\n"); } @@ -819,7 +819,7 @@ Other options: --pattern-depth => Number of pattern directory traversals (default: 0 (all)) --keywords => scan patch for keywords (default: $keywords) --sections => print all of the subsystem sections with pattern matches -  --letters => print all matching 'letter' types from all matching sections + --letters => print all matching 'letter' types from all matching sections --mailmap => use .mailmap file (default: $email_use_mailmap) --version => show version --help => show this help information -- 2.10.2