From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2041) id E10823858C39; Wed, 3 Aug 2022 17:34:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E10823858C39 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Vladimir Mezentsev To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb/binutils-2_39-branch] gprofng: fix bug 29410 - Argument "  0." isn't numeric in numeric gt (>) X-Act-Checkin: binutils-gdb X-Git-Author: Ruud van der Pas X-Git-Refname: refs/heads/binutils-2_39-branch X-Git-Oldrev: a0d1554e45cd6261017f1ae9988251dbb7c15a5b X-Git-Newrev: 7ca38082b7b66d6604495b47ca253f723a5b7e5c Message-Id: <20220803173413.E10823858C39@sourceware.org> Date: Wed, 3 Aug 2022 17:34:13 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Aug 2022 17:34:14 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D7ca38082b7b6= 6d6604495b47ca253f723a5b7e5c commit 7ca38082b7b66d6604495b47ca253f723a5b7e5c Author: Ruud van der Pas Date: Tue Aug 2 10:13:48 2022 -0700 gprofng: fix bug 29410 - Argument " 0." isn't numeric in numeric g= t (>) =20 gprofng/Changelog: 2022-08-02 Ruud van der Pas =20 PR gprofng/29410 * gp-display-html/gp-display-html.in: Remove non-breaking space= s. Diff: --- gprofng/gp-display-html/gp-display-html.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gprofng/gp-display-html/gp-display-html.in b/gprofng/gp-displa= y-html/gp-display-html.in index ab21dbb0862..8131ecf4677 100644 --- a/gprofng/gp-display-html/gp-display-html.in +++ b/gprofng/gp-display-html/gp-display-html.in @@ -6020,6 +6020,12 @@ sub generate_dis_html my $current_value;=20 my $max_value; $current_value =3D $current_metrics[$metric]; +#-------------------------------------------------------------------------= ----- +# As part of the padding process, non-breaking spaces may have been insert= ed +# in an earlier phase. Temporarily remove these to make sure that the max= imum +# metric values can be computed. +#-------------------------------------------------------------------------= ----- + $current_value =3D~ s/ //g; if (exists ($max_metric_values[$metric])) { $max_value =3D $max_metric_values[$metric];