GNU bug report logs - #36842
Bug when colors and -C used together

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: diffutils; Reported by: Alex Meiburg <Alex.Meiburg@HIDDEN>; dated Mon, 29 Jul 2019 20:54:02 UTC; Maintainer for diffutils is bug-diffutils@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Jul 2019 22:05:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 29 18:05:23 2019
Received: from localhost ([127.0.0.1]:49226 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hsDli-0005YD-Iq
	for submit <at> debbugs.gnu.org; Mon, 29 Jul 2019 18:05:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:43246)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCXg-00030L-0Q
 for submit <at> debbugs.gnu.org; Mon, 29 Jul 2019 16:46:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:50375)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCXe-0005eE-IF
 for bug-diffutils@HIDDEN; Mon, 29 Jul 2019 16:46:47 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,HTML_MESSAGE,
 RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCXd-00064h-9Z
 for bug-diffutils@HIDDEN; Mon, 29 Jul 2019 16:46:46 -0400
Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:23990
 helo=mx0a-00082601.pphosted.com)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCXd-00063K-3F
 for bug-diffutils@HIDDEN; Mon, 29 Jul 2019 16:46:45 -0400
Received: from pps.filterd (m0001303.ppops.net [127.0.0.1])
 by m0001303.ppops.net (8.16.0.27/8.16.0.27) with SMTP id x6TKkVjJ002903
 for <bug-diffutils@HIDDEN>; Mon, 29 Jul 2019 13:46:44 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oculus.com;
 h=from : to : subject :
 date : message-id : references : in-reply-to : content-type :
 mime-version; s=s2048-2016-q1;
 bh=cs7BwBJMY2rpZVLRLE4HYUG3k5hDTc+OTA6dUd7FluA=;
 b=ElSBGID6Mh+IwroI38H/b6zjJnUco9/2cDCgFP1GQBslwpywj5FVRrEJh3amrARPjCh+
 o2jXv1trqn4hXbCaWze6nOqsygUZMXREp/dSk90jOPz0Y3n/PrH2P6dbIRgaeKmPoBqk
 AlzvUyOnY+b5hl+aL0DZtixUNU68TEMEDw+ByuOh4oFUx1KHBJmovBDJvn0z+tWO3qzf
 1oV2J7wS33WZOnHKU2D1eOe8k+jCzW7QdYtIKBgxYr9fktljpPNLur+l7JeAV51R4TOQ
 4Tu3mYnrQZDsnYodGRwoqSlz2btwWQG7eRWgZoR18gRCvFtWaIqNr0Fyk9F17aAwBruG YA== 
Received: from maileast.thefacebook.com ([163.114.130.16])
 by m0001303.ppops.net with ESMTP id 2u275g078h-6
 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT)
 for <bug-diffutils@HIDDEN>; Mon, 29 Jul 2019 13:46:43 -0700
Received: from ash-exhub204.TheFacebook.com (2620:10d:c0a8:83::4) by
 ash-exhub203.TheFacebook.com (2620:10d:c0a8:83::5) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id
 15.1.1713.5; Mon, 29 Jul 2019 13:46:38 -0700
Received: from NAM02-BL2-obe.outbound.protection.outlook.com (100.104.31.183)
 by o365-in.thefacebook.com (100.104.36.100) with Microsoft SMTP
 Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5
 via Frontend Transport; Mon, 29 Jul 2019 13:46:38 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=L5r2qWlkRJMVenZvL7GbnIemI1iGd5ojA1Ad9GihYCvBEygZZCoBw9TMHV2w0LsRuTe7MxohAYoylf4q3T4WMIrEY+PIwB4aX4l5pSCC+UiViuAriNg6rSaaRPxOu4M8EeJPYWtFrdPd/S3anU2+cYCk4EV/QnnI4nt56N/0ejA4bCS3IF2o7jsNQkpzmk42zmSfhKGO2u6vUX55FpSVyQ4b+V5R6I8mUHuVlKcQnDEeBeazNOR2dxNSL2rdBV55+HoVdeHjNhNXovCVgyNOmFgIU2tqeAKZx0f4Hd1MPWYZCHQ3Nz4e+Ngp5THu7U7MIbOOZpmoCtw5ynUbqHc1DA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=cs7BwBJMY2rpZVLRLE4HYUG3k5hDTc+OTA6dUd7FluA=;
 b=XU3W+pfX4a7He1kcW3PqOBQQ2xYVxDw8eSBa29oGPFQxe7DJQP3hoH57jfELxccKUVgLVw/LDjwIltpyxwEscJE+pboKH78Vt2I1RlY2kkqc04w+OXPuFAFOvvIgv6vmcOAyePH6hGy+5OIbqeIXwMjeCU3wMZyxDwlw4AIDBVQG8NXrMOMwLS0ifiBhIOG5kfyTTl71/ZQo4vVkx2DxZoAlNAbAjd2yMuiJkGzcQqTc3FAfj7q2eIq1lYZuCShTB/xpzA6IxpHZVK6moItIPyDKpFPn+3brjaUEm3hqSGLh9BwPQW+x1drnPnhEPA7ysk7JZvCRW/TLHG2CMzJlPw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass
 smtp.mailfrom=oculus.com;dmarc=pass action=none
 header.from=oculus.com;dkim=pass header.d=oculus.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com;
 s=selector2-fb-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=cs7BwBJMY2rpZVLRLE4HYUG3k5hDTc+OTA6dUd7FluA=;
 b=kg5nySqFWRj0X9TbIVfkYe3nUTtPO3NJKoyN9Y29qjl6DGUcRfTmmC8Q9foA7byH2QsVjGg93IZKRAcdeB2D2WnFazrJvzZzTlXoywiIHJhfr/zG8JAyDBbKowFc/1KTvATF2D0Y3FEfXOwPyv6a+5leEuXkzhceaRpJS0sjn3g=
Received: from MN2PR15MB3726.namprd15.prod.outlook.com (52.132.174.91) by
 MN2PR15MB2814.namprd15.prod.outlook.com (20.179.148.83) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.2115.10; Mon, 29 Jul 2019 20:46:24 +0000
Received: from MN2PR15MB3726.namprd15.prod.outlook.com
 ([fe80::1d42:a100:cd66:1700]) by MN2PR15MB3726.namprd15.prod.outlook.com
 ([fe80::1d42:a100:cd66:1700%7]) with mapi id 15.20.2115.005; Mon, 29 Jul 2019
 20:46:24 +0000
From: Alex Meiburg <Alex.Meiburg@HIDDEN>
To: "bug-diffutils@HIDDEN" <bug-diffutils@HIDDEN>
Subject: Re: Bug when colors and -C used together
Thread-Topic: Bug when colors and -C used together
Thread-Index: AQHVRk2EjSJRFmTIc0mAc6na/C1V86biEJj0
Date: Mon, 29 Jul 2019 20:46:24 +0000
Message-ID: <MN2PR15MB3726CE7F543557040DBCBFCBFBDD0@HIDDEN>
References: <MN2PR15MB372651E437E1EB0013D5A1B9FBDD0@HIDDEN>
In-Reply-To: <MN2PR15MB372651E437E1EB0013D5A1B9FBDD0@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [2620:10d:c090:200::b07f]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 312f6143-1aa5-492e-e50f-08d71465d217
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);
 SRVR:MN2PR15MB2814; 
x-ms-traffictypediagnostic: MN2PR15MB2814:
x-microsoft-antispam-prvs: <MN2PR15MB28140AFA81EB17C6CAE5604BFBDD0@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 01136D2D90
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10019020)(39860400002)(366004)(346002)(376002)(396003)(136003)(199004)(189003)(2940100002)(55016002)(478600001)(9686003)(54896002)(11346002)(25786009)(2351001)(46003)(486006)(5640700003)(446003)(476003)(102836004)(186003)(19627405001)(53936002)(33656002)(7736002)(14454004)(6246003)(53546011)(6506007)(6436002)(76116006)(66946007)(2501003)(66476007)(52536014)(7696005)(6606003)(8936002)(66446008)(66556008)(81166006)(99286004)(81156014)(316002)(5660300002)(71200400001)(71190400001)(6916009)(64756008)(86362001)(68736007)(2906002)(6116002)(256004)(4744005)(229853002)(8676002)(74316002)(76176011)(2004002);
 DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR15MB2814;
 H:MN2PR15MB3726.namprd15.prod.outlook.com; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: Oculus.com does not designate
 permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: k7/KidtInRwHDqB72jotABcGmgxIZ7zxdg9jIvLshzkcgFpHmUmula13ii5rlMoxgAfH/N2E3Wt4Ma4qTkYliu/c9yOAqZgqSaTidvMXuwba7Emnlh5wllsGnmljmaC1ysE510mTexkxNcMl1k3S1lWRjVUqBgt5KcZmLBMSygKWrhMVZ0cmjvsG+skPKiqILft+l+2S+NGSsE0VvjW6Q2Fxn8qldKG0ElXyT28mAYyluJ+bxw3LvKkbLOi/FQmVokkGU8ugViGGrn4rr2sD2uI4db0tQBtGOavtjSBe/4KvlyWa/sbsRfs6+dJqrbyMPDX2bJr+yXg5QF02Px3k1jdIqiI3UKKxj8g1qi7BqKY0tMgGV2GhsuMZwTAlsHZTbPNpXUZKeqxX3C10vOMF4H0JJ3rPo2pn2P4lq/dLqcE=
Content-Type: multipart/alternative;
 boundary="_000_MN2PR15MB3726CE7F543557040DBCBFCBFBDD0MN2PR15MB3726namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 312f6143-1aa5-492e-e50f-08d71465d217
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2019 20:46:24.3619 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: time@HIDDEN
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR15MB2814
X-OriginatorOrg: oculus.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2019-07-29_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0
 priorityscore=1501
 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0
 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0
 mlxlogscore=641 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1906280000 definitions=main-1907290226
X-FB-Internal: deliver
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic]
X-Received-From: 67.231.153.30
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 29 Jul 2019 18:05:20 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--_000_MN2PR15MB3726CE7F543557040DBCBFCBFBDD0MN2PR15MB3726namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I'm so sorry, please ignore, I made a mistake in understanding how diff hig=
hlights colors. I guess I was thinking of `hg diff` and the like, and my co=
workers had also thought this seemed wrong.


Apologies.

________________________________
From: Alex Meiburg
Sent: Monday, July 29, 2019 1:42:29 PM
To: bug-diffutils@HIDDEN <bug-diffutils@HIDDEN>
Subject: Bug when colors and -C used together


Hello! I'd like to report a bug. I'm running version "diff (GNU diffutils) =
3.6, Copyright (C) 2017 Free Software Foundation, Inc.". When I run it with=
 --color=3Dalways and -C1, the wrong lines are highlighted: it highlights t=
he lines that _would have_ been the line numbers of output if no context wa=
s enabled, but since there are extra lines of output, it's highlighting the=
 wrong lines.


Best,

Alex Meiburg

--_000_MN2PR15MB3726CE7F543557040DBCBFCBFBDD0MN2PR15MB3726namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p style=3D"margin-top:0;margin-bottom:0">I'm so sorry, please ignore, I ma=
de a mistake in understanding how diff highlights colors. I guess I was thi=
nking of `hg diff` and the like, and my coworkers had also thought this see=
med wrong.</p>
<p style=3D"margin-top:0;margin-bottom:0"><br>
</p>
<p style=3D"margin-top:0;margin-bottom:0">Apologies.</p>
</div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Alex Meiburg<br>
<b>Sent:</b> Monday, July 29, 2019 1:42:29 PM<br>
<b>To:</b> bug-diffutils@HIDDEN &lt;bug-diffutils@HIDDEN&gt;<br>
<b>Subject:</b> Bug when colors and -C used together</font>
<div>&nbsp;</div>
</div>
<style type=3D"text/css" style=3D"display:none">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; col=
or:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style=3D"margin-top:0; margin-bottom:0">Hello! I'd like to report a bug.=
&nbsp;I'm running version&nbsp;&quot;<span style=3D"font-size:12pt">diff (G=
NU diffutils) 3.6,&nbsp;</span><span style=3D"font-size:12pt">Copyright (C)=
 2017 Free Software Foundation, Inc.&quot;. When I run it with
 --color=3Dalways and -C1, the wrong lines are highlighted: it highlights t=
he lines that _would have_ been the line numbers&nbsp;of output if no conte=
xt was enabled, but since there are extra lines of output, it's highlightin=
g the wrong lines.</span></p>
<p style=3D"margin-top:0; margin-bottom:0"><span style=3D"font-size:12pt"><=
br>
</span></p>
<p style=3D"margin-top:0; margin-bottom:0"><span style=3D"font-size:12pt">B=
est,</span></p>
<p style=3D"margin-top:0; margin-bottom:0"><span style=3D"font-size:12pt">A=
lex Meiburg</span></p>
</div>
</div>
</body>
</html>

--_000_MN2PR15MB3726CE7F543557040DBCBFCBFBDD0MN2PR15MB3726namp_--




Information forwarded to bug-diffutils@HIDDEN:
bug#36842; Package diffutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 29 Jul 2019 20:53:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 29 16:53:10 2019
Received: from localhost ([127.0.0.1]:49207 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hsCdq-0003CP-8w
	for submit <at> debbugs.gnu.org; Mon, 29 Jul 2019 16:53:10 -0400
Received: from lists.gnu.org ([209.51.188.17]:34439)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCTd-0002sI-Te
 for submit <at> debbugs.gnu.org; Mon, 29 Jul 2019 16:42:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:49207)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCTc-00050W-Mm
 for bug-diffutils@HIDDEN; Mon, 29 Jul 2019 16:42:37 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,HTML_MESSAGE,
 RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCTb-0002pK-OA
 for bug-diffutils@HIDDEN; Mon, 29 Jul 2019 16:42:36 -0400
Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:6146)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <prvs=3113cf8bdd=alex.meiburg@HIDDEN>)
 id 1hsCTb-0002ov-9H
 for bug-diffutils@HIDDEN; Mon, 29 Jul 2019 16:42:35 -0400
Received: from pps.filterd (m0044012.ppops.net [127.0.0.1])
 by mx0a-00082601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id
 x6TKfBOG025727
 for <bug-diffutils@HIDDEN>; Mon, 29 Jul 2019 13:42:33 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oculus.com;
 h=from : to : subject :
 date : message-id : content-type : mime-version; s=s2048-2016-q1;
 bh=hU77NJwJiQtDnjud11SJIhNDYLKXf/osX4f0nr9rMaw=;
 b=IknOvQAzC1JfR5heY4GjvQc9cl31ZCKp1eXu20V3qBqIzfby7lcBHeoSHeCkn9Tt2J6p
 XH0EWA6/S6lqa+wnIJZiUszCAEFUe/Bn2ydfR4GL/G+w3HxMw2S4Mq8bdRXQeYx55WWd
 ElA5QwZaQdeJIjKunHzFu4whd00D4jCPjW5l6Tqw1mNlh5aJr0zJirl6zIo8bmiLajeu
 KM54iDmwKDsOGclxsfrW6YmbDrbGQda99RivRg+rmHt3KHd6Uo6Z7eyKfB3InOp3cIAZ
 5ZyX1I0v/cg1/aEGcB60eXcifndq1pfu4ACBSAbMXLSF/Mla56cRqPOWZKvk/I+LFuEZ iw== 
Received: from mail.thefacebook.com (mailout.thefacebook.com [199.201.64.23])
 by mx0a-00082601.pphosted.com with ESMTP id 2u203rtg79-1
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)
 for <bug-diffutils@HIDDEN>; Mon, 29 Jul 2019 13:42:33 -0700
Received: from prn-mbx03.TheFacebook.com (2620:10d:c081:6::17) by
 prn-hub01.TheFacebook.com (2620:10d:c081:35::125) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id
 15.1.1713.5; Mon, 29 Jul 2019 13:42:32 -0700
Received: from prn-hub04.TheFacebook.com (2620:10d:c081:35::128) by
 prn-mbx03.TheFacebook.com (2620:10d:c081:6::17) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id
 15.1.1713.5; Mon, 29 Jul 2019 13:42:32 -0700
Received: from NAM02-BL2-obe.outbound.protection.outlook.com (192.168.54.28)
 by o365-in.thefacebook.com (192.168.16.28) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.1.1713.5
 via Frontend Transport; Mon, 29 Jul 2019 13:42:31 -0700
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=KiWgDJNGoyJjpSufSzsPN/IrC2oN/yMbEjU2H1Lzf5ywm3o5/M35tPVPUCNzjgx07iyLQI4WHac+Ppw0IRZvqG98GUEkHmGKFAr4qSsU0Tdg/fm3C1P0HQb1kGg8tcYRm5QPjVCYksM5yy++IZ0hbQzpf77OJtI6QEn5bhXE7MefxS1ypZWnlWMSoDxa4FVdXzSmKgU0elHuRBPuRKFHnQ29aLl0QubM0fuFdrs11E030XtGpS8gigec2/t0Pdqkf6e6N26Bfw+c825O2yJdRrLU2nJJyyi9CG7jJwaeon7ugLVd9boWMrXcaTPwmTYGmM+86Z1H+n49ie0KWwV8tg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=hU77NJwJiQtDnjud11SJIhNDYLKXf/osX4f0nr9rMaw=;
 b=Bz2cGC0cbtl+MFfFyZhIVsU+Rp06WOEIAT3dRyW7dudb+sTDp3dslHuqjlokrR5JMhkKL6fBkZQ+1kZGajQXkMDudvgw4z6PHPM8+OOA5HGa/IGnxdkS/dqzkyx0GI0S/uBI8+aL47k1tjGgbUOUcmB8uXn3f8X/jTfOqcQTJha8RDqxAA4QQ3AUUG83sZbfsn3OvQahJJ6UnzHeSSPvuGqP4ITipraMMbqVFrQnRvyHtjZesJwjqutu6NIrba39NvTgqQiLOlLK7lDmyt5Sw4EucI6qIKqYm0lW0kjEwmgEvMzVjxfhs5k2ovIgu9aglpP7OEWkjtvLL81Gmcc9oQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass
 smtp.mailfrom=oculus.com;dmarc=pass action=none
 header.from=oculus.com;dkim=pass header.d=oculus.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com;
 s=selector2-fb-onmicrosoft-com;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=hU77NJwJiQtDnjud11SJIhNDYLKXf/osX4f0nr9rMaw=;
 b=CGFPxS8Ayy9f704wqVR+fHHlLNDFqzajEGzVysQ83zby5T0kRr7QUt2dxId+wGjHT0UAzGYMXD3WLPHk3cmmm4Pp4WbdcTj695UiffXKeqXA1qUhbbo3nuQGzGTh0Q5ndCoHHKuobGPJQYdUxuzgvL+Th5D0xofZwMILCmiLv24=
Received: from MN2PR15MB3726.namprd15.prod.outlook.com (52.132.174.91) by
 MN2PR15MB2814.namprd15.prod.outlook.com (20.179.148.83) with Microsoft SMTP
 Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.20.2115.10; Mon, 29 Jul 2019 20:42:29 +0000
Received: from MN2PR15MB3726.namprd15.prod.outlook.com
 ([fe80::1d42:a100:cd66:1700]) by MN2PR15MB3726.namprd15.prod.outlook.com
 ([fe80::1d42:a100:cd66:1700%7]) with mapi id 15.20.2115.005; Mon, 29 Jul 2019
 20:42:29 +0000
From: Alex Meiburg <Alex.Meiburg@HIDDEN>
To: "bug-diffutils@HIDDEN" <bug-diffutils@HIDDEN>
Subject: Bug when colors and -C used together
Thread-Topic: Bug when colors and -C used together
Thread-Index: AQHVRk2EjSJRFmTIc0mAc6na/C1V8w==
Date: Mon, 29 Jul 2019 20:42:29 +0000
Message-ID: <MN2PR15MB372651E437E1EB0013D5A1B9FBDD0@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [2620:10d:c090:200::b07f]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 8a506cff-d83a-4974-a430-08d71465460e
x-microsoft-antispam: BCL:0; PCL:0;
 RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020);
 SRVR:MN2PR15MB2814; 
x-ms-traffictypediagnostic: MN2PR15MB2814:
x-microsoft-antispam-prvs: <MN2PR15MB28140DEA55F8896DB3883090FBDD0@HIDDEN>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-forefront-prvs: 01136D2D90
x-forefront-antispam-report: SFV:NSPM;
 SFS:(10019020)(39860400002)(366004)(346002)(376002)(396003)(136003)(199004)(189003)(55016002)(478600001)(9686003)(54896002)(25786009)(2351001)(46003)(486006)(5640700003)(476003)(102836004)(186003)(19627405001)(53936002)(33656002)(7736002)(14454004)(6506007)(6436002)(76116006)(66946007)(2501003)(66476007)(52536014)(7696005)(6606003)(8936002)(66446008)(66556008)(81166006)(99286004)(81156014)(316002)(5660300002)(71200400001)(71190400001)(6916009)(64756008)(86362001)(68736007)(2906002)(6116002)(256004)(4744005)(8676002)(74316002)(2004002);
 DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR15MB2814;
 H:MN2PR15MB3726.namprd15.prod.outlook.com; FPR:; SPF:None; LANG:en;
 PTR:InfoNoRecords; A:1; MX:1; 
received-spf: None (protection.outlook.com: Oculus.com does not designate
 permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: LReJmsbZOXWxXGtpVP7egXYNlIhXszguH0NOXAIXfVfH8V5KX4yYbO4U4e7c611nE0uohbqa+5PMqqZ6rZRCgQ72CIMen1hvgicP1rF8VfXi54SJ/CfxaknmMZ5C/zLrYjahhsAQFBJ5hTqVLUJ7EBSE+oQPpAasRPKWmweZR8oB0Olz83cNeOdvvcgeciUOq9Dno1s590Asz+ZMBLuIt1pObfpDr2YfSxPpr4ZM66XONlYux2w7lA9ZGvfBJrrx6x38e4/miOigHwjICMd9Ktf/jcnQSHbPc68CEJW7Zgt3vghdSB8VgomcKPCmttdPhwHS/WHg0VQSyWK0xg0z/UxFcXQOXzdL1R3jR8YyVBlaO8O8KHgNQKCQYtdERi+p5rK1tuHXY7UubjvpllIlXwKDMcnvqrc2U+mtbqzt8Zc=
Content-Type: multipart/alternative;
 boundary="_000_MN2PR15MB372651E437E1EB0013D5A1B9FBDD0MN2PR15MB3726namp_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 8a506cff-d83a-4974-a430-08d71465460e
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jul 2019 20:42:29.4332 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: time@HIDDEN
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR15MB2814
X-OriginatorOrg: oculus.com
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, ,
 definitions=2019-07-29_09:, , signatures=0
X-Proofpoint-Spam-Details: rule=fb_default_notspam policy=fb_default score=0
 priorityscore=1501
 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0
 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0
 mlxlogscore=377 adultscore=0 classifier=spam adjust=0 reason=mlx
 scancount=1 engine=8.0.1-1906280000 definitions=main-1907290226
X-FB-Internal: deliver
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic]
X-Received-From: 67.231.145.42
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 29 Jul 2019 16:53:09 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)

--_000_MN2PR15MB372651E437E1EB0013D5A1B9FBDD0MN2PR15MB3726namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello! I'd like to report a bug. I'm running version "diff (GNU diffutils) =
3.6, Copyright (C) 2017 Free Software Foundation, Inc.". When I run it with=
 --color=3Dalways and -C1, the wrong lines are highlighted: it highlights t=
he lines that _would have_ been the line numbers of output if no context wa=
s enabled, but since there are extra lines of output, it's highlighting the=
 wrong lines.


Best,

Alex Meiburg

--_000_MN2PR15MB372651E437E1EB0013D5A1B9FBDD0MN2PR15MB3726namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Helvetica,sans-serif;" dir=3D"ltr">
<p style=3D"margin-top:0;margin-bottom:0">Hello! I'd like to report a bug.&=
nbsp;I'm running version&nbsp;&quot;<span style=3D"font-size: 12pt;">diff (=
GNU diffutils) 3.6,&nbsp;</span><span style=3D"font-size: 12pt;">Copyright =
(C) 2017 Free Software Foundation, Inc.&quot;. When I run it with
 --color=3Dalways and -C1, the wrong lines are highlighted: it highlights t=
he lines that _would have_ been the line numbers&nbsp;of output if no conte=
xt was enabled, but since there are extra lines of output, it's highlightin=
g the wrong lines.</span></p>
<p style=3D"margin-top:0;margin-bottom:0"><span style=3D"font-size: 12pt;">=
<br>
</span></p>
<p style=3D"margin-top:0;margin-bottom:0"><span style=3D"font-size: 12pt;">=
Best,</span></p>
<p style=3D"margin-top:0;margin-bottom:0"><span style=3D"font-size: 12pt;">=
Alex Meiburg</span></p>
</div>
</body>
</html>

--_000_MN2PR15MB372651E437E1EB0013D5A1B9FBDD0MN2PR15MB3726namp_--




Acknowledgement sent to Alex Meiburg <Alex.Meiburg@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#36842; Package diffutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.