From MAILER-DAEMON Fri May 01 03:05:06 2026
Received: from list by lists1p.gnu.org with archive (Exim 4.90_1)
	id 1wIhvt-0005rB-TI
	for mharc-bug-diffutils@gnu.org; Fri, 01 May 2026 03:05:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIhvr-0005qw-Hk
 for bug-diffutils@gnu.org; Fri, 01 May 2026 03:05:04 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIhvr-00050L-6A
 for bug-diffutils@gnu.org; Fri, 01 May 2026 03:05:03 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=Date:Mime-Version:From:To:Subject;
 bh=wXVtpTZ1blcmzDd+4/C51a1jC3fAWPCr3sF+SpeEs1s=; 
 b=tMLaPCxchaF1cRkX9SHe0gmXEE7iYofAFeSBji2Oe/LrwwxRHFtj1toMDEkzAiR+Yl2eZBuWVsoBPSddT87JTLr5EPAcL+s+yrjQQfjq7XwtaGnat9m7QdQjyRfbAnmElFT23D2GDtmZxJae8Gx2QxmtQa1P3H1d54w7XktLM/wQDCmyegoqav1lF76PLIYm0h0KYFlsOslBSWFiNUQcgVaOnmPefwr0qx060HMY4bwFcZySwgWs3wFPFUYanxj2Z5nIBv+SC6jBhCTDo4cUyN7CbMQbH+otjhVL3FQ25K/2Nrlc49GDFR8tIIvmtJ5l0K9daF/YgxzFmwzfYFUp9Q==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1wIhvq-0003WG-Sh
 for bug-diffutils@gnu.org; Fri, 01 May 2026 03:05:02 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: "Dr. Matthias H. =?UTF-8?Q?Fr=C3=B6hlich?="
 <Dr.M.H.Froehlich@posteo.de>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-diffutils@gnu.org
Resent-Date: Fri, 01 May 2026 07:05:02 +0000
Resent-Message-ID: <handler.80937.B.177761906413278@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 80937
X-GNU-PR-Package: diffutils
X-GNU-PR-Keywords: 
To: 80937@debbugs.gnu.org
X-Debbugs-Original-To: bug-diffutils@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.177761906413278
 (code B ref -1); Fri, 01 May 2026 07:05:02 +0000
Received: (at submit) by debbugs.gnu.org; 1 May 2026 07:04:24 +0000
Received: from localhost ([127.0.0.1]:33881 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1wIhvC-0003Rx-GO
 for submit@debbugs.gnu.org; Fri, 01 May 2026 03:04:24 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:45482)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <Dr.M.H.Froehlich@posteo.de>)
 id 1wIYhX-00089u-Kt
 for submit@debbugs.gnu.org; Thu, 30 Apr 2026 17:13:40 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Dr.M.H.Froehlich@posteo.de>)
 id 1wIYhR-00088T-DT
 for bug-diffutils@gnu.org; Thu, 30 Apr 2026 17:13:33 -0400
Received: from mout02.posteo.de ([185.67.36.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Dr.M.H.Froehlich@posteo.de>)
 id 1wIYhP-0004SZ-9J
 for bug-diffutils@gnu.org; Thu, 30 Apr 2026 17:13:33 -0400
Received: from submission (posteo.de [185.67.36.169]) 
 by mout02.posteo.de (Postfix) with ESMTPS id 893EE240101
 for <bug-diffutils@gnu.org>; Thu, 30 Apr 2026 23:13:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.de; s=2017;
 t=1777583607; bh=wXVtpTZ1blcmzDd+4/C51a1jC3fAWPCr3sF+SpeEs1s=;
 h=Content-Type:Content-Transfer-Encoding:From:Mime-Version:Subject:
 Message-Id:Date:To:From;
 b=b2TKoPcr5+loYF+EyZz3y8mxnz2O0b6FUmbjtxQELcAL/NmUZe48AISvG4NF/Bnkl
 rLUpMqAsYyDLGBe8/mH8ZBLayF1YFkvqh+doUU0imSXQIZh16+OBBe4P1tUe50C9Ff
 4qPwNqTENTarJAUZ86w0eQZJp9ty1j9p6qDgWK+c0bF7+ZgCE7Ej9iwA/NZdoLjPen
 m/a6gGf05dwhO4kUtVi+SWElGX/Z6da3JmKc0IzFVpGOWQ6kEEnZU3HHjyu9bldThK
 ijqHFove0wz83UepQkQiSR8BEvYlR16ykEFg2kCy4T0aIC2Q/JHFp/Vqnxi3h+vHXM
 pYcII4wlsgLog==
Received: from customer (localhost [127.0.0.1])
 by submission (posteo.de) with ESMTPSA id 4g66N70rprz9rxG
 for <bug-diffutils@gnu.org>; Thu, 30 Apr 2026 23:13:26 +0200 (CEST)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
From: "Dr. Matthias H. =?UTF-8?Q?Fr=C3=B6hlich?=" <Dr.M.H.Froehlich@posteo.de>
Mime-Version: 1.0 (1.0)
Message-Id: <B309ABD1-C316-4D68-AFB5-8FBC8B3285E9@posteo.de>
Date: Thu, 30 Apr 2026 21:13:27 +0000
Received-SPF: pass client-ip=185.67.36.66;
 envelope-from=Dr.M.H.Froehlich@posteo.de; helo=mout02.posteo.de
X-Spam_score_int: -43
X-Spam_score: -4.4
X-Spam_bar: ----
X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Mailman-Approved-At: Fri, 01 May 2026 03:04:21 -0400
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
Subject: [bug-diffutils] bug#80937: Subtle ambiguity in documentation of
 diffutils and manpage regarding binary vs. 'text' files and option -a for
 diff
X-BeenThere: bug-diffutils@gnu.org
List-Id: "All diffutils discussion." <bug-diffutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-diffutils>
List-Post: <mailto:bug-diffutils@gnu.org>
List-Help: <mailto:bug-diffutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 01 May 2026 07:05:04 -0000

=EF=BB=BFHistorically option -a for use with diff had for decades been expla=
ined as "treat all files as text" - where 'text' refered to the executable (=
binary) code of a program (cf. https://www.perplexity.ai/search/97e19979-fdf=
5-4609-8e65-838cf1a3fdfb).=20

Current updates of documentation and man-Page appear to refer inconsistently=
 to the original meaning and to confuse it with unrelated notion of ASCII =E2=
=80=9Ctext=E2=80=9C. HTH.=20

Best regards, Matthias
--
----------------------------------------------------------------------
Dr. Matthias Hanno Fr=C3=B6hlich                M: +49 / 1 51 / 54 77 22 89
Bonnstra=C3=9Fe 49
50354 H=C3=BCrth                              e: Dr.M.H.Froehlich@Posteo.de
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D






From MAILER-DAEMON Fri May 01 11:19:10 2026
Received: from list by lists1p.gnu.org with archive (Exim 4.90_1)
	id 1wIpe2-0004u7-Ar
	for mharc-bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIpdz-0004te-72
 for bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:07 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIpdy-0001SY-Pp
 for bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=MIME-Version:From:Date:To:Subject;
 bh=mkZLOg/Ijs1vvRFdhPgqUopcqndfxkitBxOigW9W+Rg=; 
 b=lrbGUABJnDFqWYId1jUmu/s4xgy1Gh0rsp24VVVVwhhqDDPkcp/mNV1VGKXgqnsO7guhT4tcTW7I8UM3tQ37Svi1QFGvd1cQSdisiWv7OIFPhhBdnwUuxcy2F8j04wmmxvpPByChfo1KdWcbcYhsu+pSnwm4pBYVneXFu2CdSonXjVX3hMdXjQqrt5I2IT4OykragxI7UsitcPE2TnzuBxRbPHog8xti9CbGud26ng5RYQg3Zu2OS2tMhxnz5cVyhOlEVCB5GjCDs5xaVzl7T6LU105YSivm6nODoOjJx5/qsZKcNPei+YtXvCdjoiyJcIp07h2FPpQkRsTLyQO2tA==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1wIpdx-0000CI-Ua
 for bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:06 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: raf <diffutils@raf.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-diffutils@gnu.org
Resent-Date: Fri, 01 May 2026 15:19:04 +0000
Resent-Message-ID: <handler.80940.B.1777648730589@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 80940
X-GNU-PR-Package: diffutils
X-GNU-PR-Keywords: 
To: 80940@debbugs.gnu.org
X-Debbugs-Original-To: bug-diffutils@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.1777648730589
 (code B ref -1); Fri, 01 May 2026 15:19:04 +0000
Received: (at submit) by debbugs.gnu.org; 1 May 2026 15:18:50 +0000
Received: from localhost ([127.0.0.1]:36767 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1wIpdh-00009H-04
 for submit@debbugs.gnu.org; Fri, 01 May 2026 11:18:49 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:47688)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <diffutils@raf.org>) id 1wIp0w-0001sR-P1
 for submit@debbugs.gnu.org; Fri, 01 May 2026 10:38:47 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <diffutils@raf.org>) id 1wIp0p-0003zd-Jx
 for bug-diffutils@gnu.org; Fri, 01 May 2026 10:38:40 -0400
Received: from ook.raf.org ([139.99.156.21])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <diffutils@raf.org>) id 1wIp0l-000630-Ob
 for bug-diffutils@gnu.org; Fri, 01 May 2026 10:38:38 -0400
Received: from localhost (localhost [127.0.0.1])
 by ook.raf.org (Postfix) with ESMTP id E4B5666C18
 for <bug-diffutils@gnu.org>; Sat,  2 May 2026 00:38:09 +1000 (AEST)
X-Virus-Scanned: Debian amavis at ook.raf.org
Received: from ook.raf.org ([127.0.0.1])
 by localhost (ook.raf.org [127.0.0.1]) (amavis, port 10024) with ESMTP
 id 26lg2EPJtj7b for <bug-diffutils@gnu.org>;
 Sat,  2 May 2026 00:38:08 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raf.org; s=001;
 t=1777646288; bh=mkZLOg/Ijs1vvRFdhPgqUopcqndfxkitBxOigW9W+Rg=;
 h=Date:From:To:Subject:From;
 b=XDXSstFKFzKioAQB8vUmp6liZK6VPhg00BxPGw3bAJCUsbYvZ1y0S5B0yLa/vXlyE
 s/5RVKFetp2QeqD7pTiyJV1Gn7RE+FTo1nBtErSmZ+MPJXfHKBF5muUbxh8AgP7E4o
 Bk4ernp3qM9a7ffNjj0vuc4ztRssT/URRr27wRHYy4qMlX7RBgQ3Efoig02cPL7qYg
 vXft+mrdYbQEiaCwJp+Zh/dEXl5Nowzwl53fHJzA1aKpwh1n63b9W9BmOd0T1caznu
 3q2g2n09F1aATr0wRkuMvOCrmIZJpQOzZXQHd6fNAZNSExAJ1umn8L4LGhQNcxDM5Z
 W9qpaOoeWE87Q==
Received: by ook.raf.org (Postfix, from userid 1001)
 id 740B066CAC; Sat,  2 May 2026 00:38:08 +1000 (AEST)
Date: Sat, 2 May 2026 00:38:08 +1000
From: raf <diffutils@raf.org>
Message-ID: <afS60LkGaIN1nu_T@raf.org>
Mail-Followup-To: bug-diffutils@gnu.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Received-SPF: pass client-ip=139.99.156.21; envelope-from=diffutils@raf.org;
 helo=ook.raf.org
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, 
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Mailman-Approved-At: Fri, 01 May 2026 11:18:47 -0400
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
Subject: [bug-diffutils] bug#80940: Why does diff -durpN of 2 dirs with utf8
 files result in non-utf diff output?
X-BeenThere: bug-diffutils@gnu.org
List-Id: "All diffutils discussion." <bug-diffutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-diffutils>
List-Post: <mailto:bug-diffutils@gnu.org>
List-Help: <mailto:bug-diffutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 01 May 2026 15:19:08 -0000

Hi,

I have a locale directory and an older locale-bak
directory in a project's source directory. They both
contain gettext .po files that are all utf8-encoded.

Why might "diff -durpN locale-bak locale" produce a
non-utf8-encoded diff file?

The file(1) command reports all of the .po files like this:

  GNU gettext message catalogue, Unicode text, UTF-8 text

It reports the resulting diff file like this:

  unified diff output, Non-ISO extended-ASCII text, with LF, NEL line terminators

This is with diff (GNU diffutils) 3.8 on debian12 and
diff (GNU diffutils) 3.12 on macos-10.14.

Any idea what I'm doing wrong to make this happen?
I would expect the diff output to be utf8-encoded
(and readable in vim).

Hmm, if I leave out the -p option, it works correctly,
and the diff output is utf8-encoded.

Admittedly, I don't need the -p option for gettext .po
files, but I always use the shell alias d='diff -durpN'
and it usually does no harm with non-C files.

Using diff -p on two gettext .po files does produce
valid utf8-encoded output, but diff -rp on two
directories containing gettext .po files doesn't.

I tried again with a single language's translation in
both directories, and it produced correct utf8. The
original directories had 47 language directories each.
So it doesn't always happen. I don't know how many
files it takes for the problem to occur.

In case it's helpful, I've put a temporary copy of the
two locale directories and the resulting diff output at
raf.org/tmp/diffutils-rp-utf8.tar.gz (460K).

cheers,
raf





From MAILER-DAEMON Fri May 01 11:19:13 2026
Received: from list by lists1p.gnu.org with archive (Exim 4.90_1)
	id 1wIpe5-0004ui-Gm
	for mharc-bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:13 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIpe4-0004uO-7H
 for bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:12 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIpe3-0001Zj-RT
 for bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:11 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=In-Reply-To:MIME-Version:References:From:Date:To:Subject;
 bh=yA+zcsl9co+U0n5dpuznTWLSrmuXMcjGmSbay9fuZYY=; 
 b=G5MROtP6UgJuPrQ2naPgoBBs96zLOVT+k3H9TpOpR5g4zEHKQPE4Dqo4Ho8D89zlMW3Vd32k6Zqs1GFSX7tam0uZKWLnvUqfA6KhhIY1wNo8AgTP/D92q6+wcALxMaZ8wg+mBkmXD181TDDF3hwWKrAMuQ7w+JAPASUz5Y6iV7yNESZDXVpTiRZnGC5g0CzFdQGx+LPbfD9NSUfBvHaxP9aCK9AlNKw/nskjDXkOEuuDY4BQH6CymZSBip1y7RFnUfaVBgFNq0l+kHp7Uiu7EoHOCA6AVufXQI5nmEVTDDJsXINm58iW/ipCUWnfHh/pFq2e8CPqbq5CEZopLGX4ew==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1wIpe3-0000D8-Dd
 for bug-diffutils@gnu.org; Fri, 01 May 2026 11:19:11 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: raf <diffutils@raf.org>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-diffutils@gnu.org
Resent-Date: Fri, 01 May 2026 15:19:09 +0000
Resent-Message-ID: <handler.80941.B.1777648732614@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 80941
X-GNU-PR-Package: diffutils
X-GNU-PR-Keywords: 
To: 80941@debbugs.gnu.org
X-Debbugs-Original-To: bug-diffutils@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.1777648732614
 (code B ref -1); Fri, 01 May 2026 15:19:09 +0000
Received: (at submit) by debbugs.gnu.org; 1 May 2026 15:18:52 +0000
Received: from localhost ([127.0.0.1]:36769 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1wIpdh-00009S-SI
 for submit@debbugs.gnu.org; Fri, 01 May 2026 11:18:51 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:53988)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <diffutils@raf.org>) id 1wIpKt-00054N-1u
 for submit@debbugs.gnu.org; Fri, 01 May 2026 10:59:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <diffutils@raf.org>) id 1wIpKn-0000FQ-7h
 for bug-diffutils@gnu.org; Fri, 01 May 2026 10:59:17 -0400
Received: from ook.raf.org ([139.99.156.21])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <diffutils@raf.org>) id 1wIpKk-0006cQ-KV
 for bug-diffutils@gnu.org; Fri, 01 May 2026 10:59:16 -0400
Received: from localhost (localhost [127.0.0.1])
 by ook.raf.org (Postfix) with ESMTP id 2B76766D14
 for <bug-diffutils@gnu.org>; Sat,  2 May 2026 00:58:56 +1000 (AEST)
X-Virus-Scanned: Debian amavis at ook.raf.org
Received: from ook.raf.org ([127.0.0.1])
 by localhost (ook.raf.org [127.0.0.1]) (amavis, port 10024) with ESMTP
 id 09ZQMasfNO40 for <bug-diffutils@gnu.org>;
 Sat,  2 May 2026 00:58:55 +1000 (AEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raf.org; s=001;
 t=1777647535; bh=yA+zcsl9co+U0n5dpuznTWLSrmuXMcjGmSbay9fuZYY=;
 h=Date:From:To:Subject:References:In-Reply-To:From;
 b=hv7h/4XArhX9LgGv+dG1hPHg41HwBhJxANBOEwzRkOrF1Ja2tuT4h8jH2QOcpoqpm
 x6AooC2gd4uRhnKgbH2ARRzQ5xRV7TkChpKONs2szvrW58DjXFYVS6GQH78OmnSDVS
 8Em+uIbKcsSwBL6FewJy5aTrghXGjAd+Q959Jgzh3VP6B67ipgBA4brRqpAieJRJlI
 qoT3JjNdHX+r2QK7gjtKvrS+vPWTm4LWUYxcdrdTmUR4nJGo90C9eeRENNnZk7VeCV
 37cviXKjzYeBnA0pSXX5GuCl6mCf4OAN6YHAzoh140BhW74kB65aA9ezB9WL/V5j7x
 cQ42eX11H2tJA==
Received: by ook.raf.org (Postfix, from userid 1001)
 id 27D4466D16; Sat,  2 May 2026 00:58:55 +1000 (AEST)
Date: Sat, 2 May 2026 00:58:55 +1000
From: raf <diffutils@raf.org>
Message-ID: <afS_r392B13-cbYQ@raf.org>
Mail-Followup-To: bug-diffutils@gnu.org
References: <afS60LkGaIN1nu_T@raf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <afS60LkGaIN1nu_T@raf.org>
Received-SPF: pass client-ip=139.99.156.21; envelope-from=diffutils@raf.org;
 helo=ook.raf.org
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, 
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Mailman-Approved-At: Fri, 01 May 2026 11:18:47 -0400
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
Subject: [bug-diffutils] bug#80941: Why does diff -durpN of 2 dirs with utf8
 files result in non-utf diff output?
X-BeenThere: bug-diffutils@gnu.org
List-Id: "All diffutils discussion." <bug-diffutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-diffutils>
List-Post: <mailto:bug-diffutils@gnu.org>
List-Help: <mailto:bug-diffutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 01 May 2026 15:19:12 -0000

On Sat, May 02, 2026 at 12:38:08AM +1000, raf <diffutils@raf.org> wrote:

> Hi,
> 
> I have a locale directory and an older locale-bak
> directory in a project's source directory. They both
> contain gettext .po files that are all utf8-encoded.
> 
> Why might "diff -durpN locale-bak locale" produce a
> non-utf8-encoded diff file?
> 
> The file(1) command reports all of the .po files like this:
> 
>   GNU gettext message catalogue, Unicode text, UTF-8 text
> 
> It reports the resulting diff file like this:
> 
>   unified diff output, Non-ISO extended-ASCII text, with LF, NEL line terminators
> 
> This is with diff (GNU diffutils) 3.8 on debian12 and
> diff (GNU diffutils) 3.12 on macos-10.14.
> 
> Any idea what I'm doing wrong to make this happen?
> I would expect the diff output to be utf8-encoded
> (and readable in vim).
> 
> Hmm, if I leave out the -p option, it works correctly,
> and the diff output is utf8-encoded.
> 
> Admittedly, I don't need the -p option for gettext .po
> files, but I always use the shell alias d='diff -durpN'
> and it usually does no harm with non-C files.
> 
> Using diff -p on two gettext .po files does produce
> valid utf8-encoded output, but diff -rp on two
> directories containing gettext .po files doesn't.
> 
> I tried again with a single language's translation in
> both directories, and it produced correct utf8. The
> original directories had 47 language directories each.
> So it doesn't always happen. I don't know how many
> files it takes for the problem to occur.
> 
> In case it's helpful, I've put a temporary copy of the
> two locale directories and the resulting diff output at
> raf.org/tmp/diffutils-rp-utf8.tar.gz (460K).
> 
> cheers,
> raf

The attempt to do -p on the directories in that tarball
results in "illegal bytes" in locale.diff in the following
lines:

  257: @@ -450,9 +471,11 @@ msgstr "пътят е твърде дъ�
  443: @@ -718,9 +737,25 @@ msgstr "কমান্ডটি খু�
  1271: @@ -450,9 +471,11 @@ msgstr "η διαδρομή είναι �
  1304: @@ -718,9 +738,25 @@ msgstr "η εντολή είναι πο�
  2443: @@ -505,7 +528,7 @@ msgstr "अमान्य -f विक�
  6444: @@ -718,9 +737,25 @@ msgstr "கட்டளை மிகப�
  7548: @@ -152,11 +169,11 @@ msgstr "  -i           - 包含 inode �
  7562: @@ -244,7 +261,7 @@ msgstr "                   @ 符号链�
  7660: @@ -528,7 +551,7 @@ msgstr "最终条件表达式后应为�
  7669: @@ -581,7 +604,7 @@ msgstr "函数参数列表中应为“)�
  7696: @@ -617,7 +640,7 @@ msgstr "预期纳秒数，实际测量�

Maybe the -p code isn't careful enough to output whole code points
and is truncating? Just guessing.

cheers,
raf





From MAILER-DAEMON Fri May 01 12:08:08 2026
Received: from list by lists1p.gnu.org with archive (Exim 4.90_1)
	id 1wIqPQ-0004c5-GW
	for mharc-bug-diffutils@gnu.org; Fri, 01 May 2026 12:08:08 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIqPO-0004bu-BY
 for bug-diffutils@gnu.org; Fri, 01 May 2026 12:08:06 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wIqPO-0001fz-0A
 for bug-diffutils@gnu.org; Fri, 01 May 2026 12:08:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=In-Reply-To:From:References:MIME-Version:Date:To:Subject;
 bh=pf5E7UXENSndVUzSmnx98+HAT4bj00/TaiBhsYhuyxY=; 
 b=PZCPQtgFwIZb2QCDA7BW8k9GgL3kGJpH/LfXRf8KDfHS53eZm5L1f6rof5kMnZ0Y9MJuSRP301DDaQKxMUAOFqNtTAQ4/1kWOFfziPUorgybBA1QduNeYdon+poYXbjH0JnaGeSaJM7zW7Ny78NxFoNYYn+GTBh4BfOuiVZT2jG/igzwLt93bChuJsMrOJ9WvSxDrvUOrnzMpJwRlv38lLRTEGcGCGPVtxaUtL5NGJHsKl3loRgf3h4jKrN5eb0hW5hV12u3mc1NEY0Tcj8I9UtuxN3+/a49g5UgjJJIXSFBfFNcqU8xBk2sOtmZzM7Zp9UUQ/u1Gvp0QIkGtxskFg==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1wIqPN-0006iw-Ew
 for bug-diffutils@gnu.org; Fri, 01 May 2026 12:08:05 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Paul Eggert <eggert@cs.ucla.edu>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-diffutils@gnu.org
Resent-Date: Fri, 01 May 2026 16:08:05 +0000
Resent-Message-ID: <handler.80941.B.177765167125688@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: followup 80941
X-GNU-PR-Package: diffutils
X-GNU-PR-Keywords: 
To: 80941@debbugs.gnu.org
X-Debbugs-Original-To: bug-diffutils@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.177765167125688
 (code B ref -1); Fri, 01 May 2026 16:08:05 +0000
Received: (at submit) by debbugs.gnu.org; 1 May 2026 16:07:51 +0000
Received: from localhost ([127.0.0.1]:37042 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1wIqP6-0006fu-ES
 for submit@debbugs.gnu.org; Fri, 01 May 2026 12:07:50 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:57008)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eggert@cs.ucla.edu>)
 id 1wIqP1-0006di-7e
 for submit@debbugs.gnu.org; Fri, 01 May 2026 12:07:45 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eggert@cs.ucla.edu>)
 id 1wIqOs-0004ZO-MZ
 for bug-diffutils@gnu.org; Fri, 01 May 2026 12:07:35 -0400
Received: from mail.cs.ucla.edu ([131.179.128.66])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eggert@cs.ucla.edu>)
 id 1wIqOr-0001WL-A9
 for bug-diffutils@gnu.org; Fri, 01 May 2026 12:07:34 -0400
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 68B953C09FC8F
 for <bug-diffutils@gnu.org>; Fri,  1 May 2026 09:07:32 -0700 (PDT)
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP
 id 3gx_P0MBOUyG for <bug-diffutils@gnu.org>;
 Fri,  1 May 2026 09:07:32 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
 by mail.cs.ucla.edu (Postfix) with ESMTP id 3FCE73C09FC92
 for <bug-diffutils@gnu.org>; Fri,  1 May 2026 09:07:32 -0700 (PDT)
DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 3FCE73C09FC92
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu;
 s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1777651652;
 bh=pf5E7UXENSndVUzSmnx98+HAT4bj00/TaiBhsYhuyxY=;
 h=Message-ID:Date:MIME-Version:To:From;
 b=eeqzSx7t5A7m8MuBX2hENBqvJvfGuB864xheM8C0SOkN7dtryGcK9fcEoqTgSSrg+
 cIhw7DV9yhSaK5mJnoMFzreji7PGlnZ0SG96xhasiu2CTV35VdCdgCecELRAxgchm6
 56nzmYaAMWUG2jsMpJkKXbSZ6tuETrxbV70sDGrLcmmJZzfpWhDbOzMatjpTLlXUr4
 rirKLKF3fAAkabZVyX9eQ2RG+1o5oC2fdJZI59FBMaZVgC3Lek98CWvkm7zmbOZ83m
 gNIZ9tlV9S21Rt3JgOmzG1y4qGnWqfTBTot46Q/hH7aa9m4ekA8CqhsHrsEDt/xxLr
 3/1lP/3nnGjPQ==
X-Virus-Scanned: amavis at mail.cs.ucla.edu
Received: from mail.cs.ucla.edu ([127.0.0.1])
 by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP
 id G3Gz72v71iPt for <bug-diffutils@gnu.org>;
 Fri,  1 May 2026 09:07:32 -0700 (PDT)
Received: from [131.179.64.200] (Penguin.CS.UCLA.EDU [131.179.64.200])
 by mail.cs.ucla.edu (Postfix) with ESMTPSA id 2483F3C09FC8F
 for <bug-diffutils@gnu.org>; Fri,  1 May 2026 09:07:32 -0700 (PDT)
Message-ID: <9ef50a52-0627-4ba8-89f2-601446454840@cs.ucla.edu>
Date: Fri, 1 May 2026 09:07:31 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <afS60LkGaIN1nu_T@raf.org> <afS_r392B13-cbYQ@raf.org>
Content-Language: en-US
From: Paul Eggert <eggert@cs.ucla.edu>
Autocrypt: addr=eggert@cs.ucla.edu; keydata=
 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
Organization: UCLA Computer Science Department
In-Reply-To: <afS_r392B13-cbYQ@raf.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; 
 helo=mail.cs.ucla.edu
X-Spam_score_int: -19
X-Spam_score: -2.0
X-Spam_bar: --
X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.0 (/)
Subject: [bug-diffutils] bug#80941: bug#80941: Why does diff -durpN of 2
 dirs with utf8 files result in non-utf diff output?
X-BeenThere: bug-diffutils@gnu.org
List-Id: "All diffutils discussion." <bug-diffutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-diffutils>
List-Post: <mailto:bug-diffutils@gnu.org>
List-Help: <mailto:bug-diffutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Fri, 01 May 2026 16:08:06 -0000

On 2026-05-01 07:58, raf via bug-diffutils via All diffutils discussion. 
wrote:
> Maybe the -p code isn't careful enough to output whole code points
> and is truncating? Just guessing.

Yes, that's it. Thanks for the diagnosis.




From MAILER-DAEMON Mon May 18 09:47:20 2026
Received: from list by lists1p.gnu.org with archive (Exim 4.90_1)
	id 1wOyJR-0007jU-Qm
	for mharc-bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wOyJK-0007ib-QG
 for bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:13 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wOyJK-0003tz-GJ
 for bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=In-Reply-To:From:References:MIME-Version:Date:To:Subject;
 bh=MqFJQ0qNCswUclq6BtQv2VrcXrEziGeqgoY8Wq34FoU=; 
 b=eeWxSmN8Zc1k0Ic/U6lR+CT5NgWxkIP+TPa13UuHxUx/z7TZ/4grE/0PA+YjhFKrzqpKNklwtqxrA7wD9mow8sORn0Gy3nH7zwaWXFzZ2bE4e1Cbp2qjZooDSlm+k6xZW91kq4/QCQ5IDUg4QGafOuV2ZynM46t2lpO1x0BZh0ObmTwqnOw/ncZc/QSuPmPKaXUNSRdKJbUENwbSYYNt6ReRgG0dO9qKy8gR0UObZ76HUfst56v5I4mKgXVtBP3c3teg27SpeypyH/Dap2/IhqEXU9uzFzfKz+BesjCDcK6F11Bj4cBKQn/hxKHIyGHwa8d7IfsgoXKhrOjThHf8Xg==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1wOyJK-0008Lx-7l
 for bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:10 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Dirk Clemens <dirk@cle-mens.de>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-diffutils@gnu.org
Resent-Date: Mon, 18 May 2026 13:47:08 +0000
Resent-Message-ID: <handler.81069.B.177911197431627@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 81069
X-GNU-PR-Package: diffutils
X-GNU-PR-Keywords: 
To: develop@wiimm.de, 81069@debbugs.gnu.org
X-Debbugs-Original-To: develop@wiimm.de, bug-diffutils@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.177911197431627
 (code B ref -1); Mon, 18 May 2026 13:47:08 +0000
Received: (at submit) by debbugs.gnu.org; 18 May 2026 13:46:14 +0000
Received: from localhost ([127.0.0.1]:57732 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1wOyIL-0008DN-8w
 for submit@debbugs.gnu.org; Mon, 18 May 2026 09:46:13 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:40192)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dirk@cle-mens.de>) id 1wOrgI-0003Gd-S4
 for submit@debbugs.gnu.org; Mon, 18 May 2026 02:42:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dirk@cle-mens.de>) id 1wOrg8-00078G-4C
 for bug-diffutils@gnu.org; Mon, 18 May 2026 02:42:16 -0400
Received: from mo4-p00-ob.smtp.rzone.de ([85.215.255.24])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dirk@cle-mens.de>) id 1wOrg6-0004rH-3n
 for bug-diffutils@gnu.org; Mon, 18 May 2026 02:42:15 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1779086529; cv=none;
 d=strato.com; s=strato-dkim-0002;
 b=SXkjG7XiO8mVXbtGHwHbzPcMma049KjRHGtYrtcPp+t4D8eS+W99+/P2F3tLBu/7H8
 67pme/y7jTpTZN5MrecWCs+HSyQi1U9N8445eYOT0pJftqvoHBrqmY5LNi3d9Ygmd0ZG
 rMy7Ct4FASI+E7u0foQvMHecnYfHklqDiNKL4fMKVMHbj0HMTz18Ac6GE7LphgWmwPEf
 q+FaY7DfxM2Lexq9JhJBLz5jmNKIMDqXvO62vgJVKIKqKzYd+9M8TaIccglhZRy/awxf
 OPBoIJQXPU4bL8/pbrZjj5B3KUlD39jkB2PZUBWOxYnTP7k6bV7gthZyYPowUv/QQlgR
 /PDA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1779086529;
 s=strato-dkim-0002; d=strato.com;
 h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From:
 Subject:Sender;
 bh=MqFJQ0qNCswUclq6BtQv2VrcXrEziGeqgoY8Wq34FoU=;
 b=Ls4AixQp+CJo4f5ygletnLVTkX0q3i0BCIfzuxOOp7ZX8AE3KlHDSrMQ3S0zsJfkzP
 ut7Vqn5IhymEyLtGjwebdMMAPA+tTfQl8HiR2lWz1A+6rimfZ9mmhK2NTdZXV5IstDJM
 Nr3EmGNewzIP4YvEelmBN06d0n8fHp4jQoJiF7XioU6MGmLY/ChT62cbfcr9r97yLG5y
 yPXC4Si3PCSd9qq36BHZ1IntPodBDehLElDmkyz0pqt81fJUgno8Ai+sr72/5LTV0dI6
 N+eFH+IMnNAsbe+C4MBu4aA7sJzHtX5CZt/pIW12sEw4wIh+ZyF0/Tx1876/b/8tW037
 XcPg==
ARC-Authentication-Results: i=1; strato.com;
    arc=none;
    dkim=none
X-RZG-CLASS-ID: mo00
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1779086529;
 s=strato-dkim-0002; d=cle-mens.de;
 h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From:
 Subject:Sender;
 bh=MqFJQ0qNCswUclq6BtQv2VrcXrEziGeqgoY8Wq34FoU=;
 b=KKI6uO1SrqktUGixytaNPjFPqP7xWUJAbHZpRsjujgtm1V3v14/b1IhQfUDZ990fWr
 zOYWF9+gzedcaCRk2Rb+d4pzMIm7k4uIkRCSW6lQZlnUPPTp4/eg3YaFXAE50KPyZXo8
 GhP0Zmw90Xil3WQTcFhWbHbRu/BXkduJooi0OdDzK9YFGMaBpK8pmyJeF6hxzWWczOTU
 GYFyY7VDgfp/PYqYO4Knnrh9z9N7hgard6cu1mr/Qmb7jWOQ6dVNU76+mQzTPycPO8CN
 3tNVhX/+S1whrNylcvkggesvgzCwsgGsoWFCjyWMZEavoegU0Lml/P+QPQJxi1v0K/fg
 r7ew==
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1779086529;
 s=strato-dkim-0003; d=cle-mens.de;
 h=In-Reply-To:From:References:To:Subject:Date:Message-ID:Cc:Date:From:
 Subject:Sender;
 bh=MqFJQ0qNCswUclq6BtQv2VrcXrEziGeqgoY8Wq34FoU=;
 b=wo9eWXbBbwFXHsyXePWGR4gOneD8gIiMhRFjB+wTiuE3RToOWlIN3YI+mo8RW5xd/u
 3Tkf//tnFfioiveI86BQ==
X-RZG-AUTH: ":KGUWfmCrd/oRzZJ9MZxlSyqmhSDzUjmD2KTreJ/JhwdY9fspX+I11D8pFMwhJQ=="
Received: from [172.22.2.1] by smtp.strato.de (RZmta 55.0.1 DYNA|AUTH)
 with ESMTPSA id qeddbf24I6g9CNb
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits))
 (Client did not present a certificate);
 Mon, 18 May 2026 08:42:09 +0200 (CEST)
Content-Type: multipart/alternative;
 boundary="------------XA4OQmX9Xb9oFtrqzp5pConk"
Message-ID: <ac79ddfe-987e-4d36-acb3-1b5040a6da29@cle-mens.de>
Date: Mon, 18 May 2026 08:42:08 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
References: <f5d354f7-4ee1-45cc-91f2-3cfe001bbb80@wiimm.de>
Content-Language: de-DE, en-US
From: Dirk Clemens <dirk@cle-mens.de>
In-Reply-To: <f5d354f7-4ee1-45cc-91f2-3cfe001bbb80@wiimm.de>
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=85.215.255.24; envelope-from=dirk@cle-mens.de;
 helo=mo4-p00-ob.smtp.rzone.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Mailman-Approved-At: Mon, 18 May 2026 09:46:03 -0400
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
Subject: [bug-diffutils] bug#81069: diff v3.12: options --from-file and
 --to-file are buggy
X-BeenThere: bug-diffutils@gnu.org
List-Id: "All diffutils discussion." <bug-diffutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-diffutils>
List-Post: <mailto:bug-diffutils@gnu.org>
List-Help: <mailto:bug-diffutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 18 May 2026 13:47:14 -0000

This is a multi-part message in MIME format.
--------------XA4OQmX9Xb9oFtrqzp5pConk
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Sorry, I made a mistake: It is v3.12!!

Am 2026-05-18 um 08:33 schrieb develop@wiimm.de:
>
> Hello,
>
> System: OpenSUSE tumbleweed.
>
> If I use command
>
> |    diff FILE1 FILE2 FILE3 --from-file OTHER-DIR/| (with and without 
> trailing slash)
>
> only FILE1 is compared. For the other files I get the message: "diff: 
> OTHER-DIR: No such file or directory". All files exist! Same for 
> option --to-file. If I remove FILE1 from the source list, only FILE2 
> is compared. At an old system, this commands works perfect. I use this 
> type of command for decades and had never such issues.
>
> Example code (bash):
>
> |# create test files mkdir -p other-dir for f in 
> {,other-dir/}file{1,2,3}.tmp; do echo "$f" > "$f"; done # test diff 
> file{1,2,3}.tmp --from-file other-dir/ diff file{1,2,3}.tmp --to-file 
> other-dir/ # cleanup rm -r file{1,2,3}.tmp other-dir/|
>
> Dirk Clemens
>

--------------XA4OQmX9Xb9oFtrqzp5pConk
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Sorry, I made a mistake: It is v3.12!!</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Am 2026-05-18 um 08:33 schrieb
      <a class="moz-txt-link-abbreviated" href="mailto:develop@wiimm.de">develop@wiimm.de</a>:<br>
    </div>
    <blockquote type="cite"
      cite="mid:f5d354f7-4ee1-45cc-91f2-3cfe001bbb80@wiimm.de">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <p>Hello,</p>
      <p>System: OpenSUSE tumbleweed.</p>
      <p>If I use command </p>
      <p><code>    diff FILE1 FILE2 FILE3 --from-file OTHER-DIR/</code>
        (with and without trailing slash)</p>
      <p>only FILE1 is compared. For the other files I get the message:
        "diff: OTHER-DIR: No such file or directory". All files exist!
        Same for option --to-file. If I remove FILE1 from the source
        list, only FILE2 is compared. At an old system, this commands
        works perfect. I use this type of command for decades and had
        never such issues.</p>
      <p>Example code (bash):</p>
      <pre class="lang-bash s-code-block"><code data-highlighted="yes"
      class="hljs language-bash"><span class="hljs-comment"># create test files</span>
<span class="hljs-built_in">mkdir</span> -p other-dir
<span class="hljs-keyword">for</span> f <span class="hljs-keyword">in</span> {,other-dir/}file{1,2,3}.tmp; <span
      class="hljs-keyword">do</span> <span class="hljs-built_in">echo</span> <span
      class="hljs-string">"<span class="hljs-variable">$f</span>"</span> &gt; <span
      class="hljs-string">"<span class="hljs-variable">$f</span>"</span>; <span
      class="hljs-keyword">done</span>

<span class="hljs-comment"># test</span>
diff file{1,2,3}.tmp --from-file other-dir/
diff file{1,2,3}.tmp --to-file other-dir/

<span class="hljs-comment"># cleanup</span>
<span class="hljs-built_in">rm</span> -r file{1,2,3}.tmp other-dir/</code></pre>
      <p>Dirk Clemens</p>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

--------------XA4OQmX9Xb9oFtrqzp5pConk--




From MAILER-DAEMON Mon May 18 09:47:23 2026
Received: from list by lists1p.gnu.org with archive (Exim 4.90_1)
	id 1wOyJX-0007kL-L7
	for mharc-bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:23 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wOyJH-0007iQ-3c
 for bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:13 -0400
Received: from debbugs.gnu.org ([2001:470:142:5::43])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1wOyJG-0003n2-Ei
 for bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:06 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
 d=debbugs.gnu.org; s=debbugs-gnu-org; 
 h=From:MIME-Version:Date:To:Subject;
 bh=Uhniu5eTLSSacE1ArXvugXdTeQ5EQC2DxqeQ8k1hev0=; 
 b=dFnHW9M57J9hLrwVar2FK5sEkSdmSlCWOQ/R8qpKahxNC5niVBigurDmdYZff7lNeH5vDAtrnJH7d7qfNKrwbLv619CD7R3sNs3RLngYKrMs725Ju5ZNE9lgrcafZiosSt2gYW0foIx1gLG0Prk27o7eLHq+gSD56PRpgOHhVRqpYYNpz3hjmtG3gpvcPa0nOX76J9Cu72w6a5Bc+8b/om9j39/jYo50WefazSyG5X0xRsGjjTd7ykmxnB5fSUyDQv8nsw3nSuzWNMkX/fBmUo+/4yaF9UFvWaTqzSGn3f6cmYIVIn75yK/AnYjsp3TqiXoqk0GEQplc7CHn4x0xIw==;
Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1wOyJG-0008L1-4L
 for bug-diffutils@gnu.org; Mon, 18 May 2026 09:47:06 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: develop@wiimm.de
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-diffutils@gnu.org
Resent-Date: Mon, 18 May 2026 13:47:04 +0000
Resent-Message-ID: <handler.81068.B.177911197031587@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 81068
X-GNU-PR-Package: diffutils
X-GNU-PR-Keywords: 
To: 81068@debbugs.gnu.org
X-Debbugs-Original-To: bug-diffutils@gnu.org
Received: via spool by submit@debbugs.gnu.org id=B.177911197031587
 (code B ref -1); Mon, 18 May 2026 13:47:04 +0000
Received: (at submit) by debbugs.gnu.org; 18 May 2026 13:46:10 +0000
Received: from localhost ([127.0.0.1]:57727 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1wOyIH-0008Cs-Ip
 for submit@debbugs.gnu.org; Mon, 18 May 2026 09:46:09 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:53006)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <develop@wiimm.de>) id 1wOrYO-0002Xa-Lm
 for submit@debbugs.gnu.org; Mon, 18 May 2026 02:34:17 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <develop@wiimm.de>) id 1wOrY5-0005K7-0t
 for bug-diffutils@gnu.org; Mon, 18 May 2026 02:34:00 -0400
Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.162])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <develop@wiimm.de>) id 1wOrY2-0001H6-5B
 for bug-diffutils@gnu.org; Mon, 18 May 2026 02:33:56 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1779086027; cv=none;
 d=strato.com; s=strato-dkim-0002;
 b=qPtLflkozJ7SilaR8MQ44K7nppoCzJm0RsErilTVDCksJvupj2Q3n9ph6SZrIiRkDu
 F3BRe5X/wx4Ww3YvT5MCQ6LmrE5Qw3o/CYM8fJz/O1Bpp0/yqRYMHOFA6uPOniHI6R5k
 iG93/ReLcoMxEgrJT4xyDOEhw5CUExtzH5AQidZaCC7p29NsmCVsn9/5o8ADyaWmUcwm
 q5ws8EWNKcl9v1gw3KA3lWXT9R2r2dKRZNHFcWlvRTqzWDlInfpDtvMoeOpwIsYuE7Vu
 FqsS6jH737qmxsXbVq8BxgIlfB3efZRZEE+huzYF8fvegvZwJhcAxUckpAG8teOOss7Z
 VgQw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1779086027;
 s=strato-dkim-0002; d=strato.com;
 h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender;
 bh=Uhniu5eTLSSacE1ArXvugXdTeQ5EQC2DxqeQ8k1hev0=;
 b=SYQZRZBpXf5bn0rI3LSPmhZKUl+/Kq1SkNsKKqfI0RSZn73AF2OXiOeooFdttBclIE
 MZ/BH7jAWNOKEIbAfQ/4DzmMXq056gXjnogOSwLHhG+82piqzRarYMJ7tfGvWTzZaihn
 gfTVytPrLp/0eU30yJlr1no6oj/BJcPmLr34p3UtYCK/qbW37wtCU5uUEVdWqeMxAhuZ
 X/MGpfM3Jk+dC4CAH309CSVjsRGxu06N4LMBHmtwHTsc+4jCegaSj1WZGuAYhgCJz2o2
 GGwI1FnPtWxekgaz4yGi5l6+0aFnHc4wtC49Sq+iAKjvMSz+sCJiFohwPA+mnYnXWBnR
 2Hkw==
ARC-Authentication-Results: i=1; strato.com;
    arc=none;
    dkim=none
X-RZG-CLASS-ID: mo00
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1779086027;
 s=strato-dkim-0002; d=wiimm.de;
 h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender;
 bh=Uhniu5eTLSSacE1ArXvugXdTeQ5EQC2DxqeQ8k1hev0=;
 b=QGMLPRxtJvON3lu9PvYMLfT99LLdEGU/ALELtPkmZJnFdBtn9Q/KSSSQgHl0oSgBt1
 4yG8Dth1FPcNeuSL8UuWj7sZEian21/LqhsPHblTQgmUQSTSsD5qB3PEnZef/d7g2Xnr
 isKdogPyY9S6zmrbY6mc8qBtHzftQnGGXqY5+z5rprZhSBZLVM+ZbADY2BKk55KShV8W
 7ojmn17iSVfYigU2uQr0KDJ4IwYj6I6fKw5F/Afkgjr7ZAvGAoj5E0KyGI6YFyjhHdU0
 9ej9Tf3y2vPoUJhKS62W58OH9lCe/cQcaIL7akRHg+tkHkMiIoBEV0z6DTGJiI49Ixv7
 tdzg==
DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1779086027;
 s=strato-dkim-0003; d=wiimm.de;
 h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender;
 bh=Uhniu5eTLSSacE1ArXvugXdTeQ5EQC2DxqeQ8k1hev0=;
 b=2TcumZbF0KwqAf00kTIdw65tlUi0cMBa9XrzOXSMkp/3kYAcT+cR59lQoDhOu4hLVh
 ki2MKxu6YDKKF3UXy7BA==
X-RZG-AUTH: ":KGUWfmCrd/oRzZJ9MZxlSyqmhSDzUjmD2KTreJ/JhwdY9fspX+I11D8pFMwhJQ=="
Received: from [172.22.2.1] by smtp.strato.de (RZmta 55.0.1 DYNA|AUTH)
 with ESMTPSA id qeddbf24I6XlCL6
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits))
 (Client did not present a certificate) for <bug-diffutils@gnu.org>;
 Mon, 18 May 2026 08:33:47 +0200 (CEST)
Content-Type: multipart/alternative;
 boundary="------------hdB0wt8rHu14bwuwRjAaMla1"
Message-ID: <f5d354f7-4ee1-45cc-91f2-3cfe001bbb80@wiimm.de>
Date: Mon, 18 May 2026 08:33:43 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: de-DE, en-US
From: develop@wiimm.de
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=81.169.146.162; envelope-from=develop@wiimm.de;
 helo=mo4-p00-ob.smtp.rzone.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Mailman-Approved-At: Mon, 18 May 2026 09:46:03 -0400
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
X-Spam-Score: -0.1 (/)
Subject: [bug-diffutils] bug#81068: diff v1.12: options --from-file and
 --to-file are buggy
X-BeenThere: bug-diffutils@gnu.org
List-Id: "All diffutils discussion." <bug-diffutils.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-diffutils>
List-Post: <mailto:bug-diffutils@gnu.org>
List-Help: <mailto:bug-diffutils-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-diffutils>,
 <mailto:bug-diffutils-request@gnu.org?subject=subscribe>
X-List-Received-Date: Mon, 18 May 2026 13:47:13 -0000

This is a multi-part message in MIME format.
--------------hdB0wt8rHu14bwuwRjAaMla1
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

System: OpenSUSE tumbleweed.

If I use command

|    diff FILE1 FILE2 FILE3 --from-file OTHER-DIR/| (with and without 
trailing slash)

only FILE1 is compared. For the other files I get the message: "diff: 
OTHER-DIR: No such file or directory". All files exist! Same for option 
--to-file. If I remove FILE1 from the source list, only FILE2 is 
compared. At an old system, this commands works perfect. I use this type 
of command for decades and had never such issues.

Example code (bash):

|# create test files mkdir -p other-dir for f in 
{,other-dir/}file{1,2,3}.tmp; do echo "$f" > "$f"; done # test diff 
file{1,2,3}.tmp --from-file other-dir/ diff file{1,2,3}.tmp --to-file 
other-dir/ # cleanup rm -r file{1,2,3}.tmp other-dir/|

Dirk Clemens

--------------hdB0wt8rHu14bwuwRjAaMla1
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>System: OpenSUSE tumbleweed.</p>
    <p>If I use command </p>
    <p><code>    diff FILE1 FILE2 FILE3 --from-file OTHER-DIR/</code>
      (with and without trailing slash)</p>
    <p>only FILE1 is compared. For the other files I get the message:
      "diff: OTHER-DIR: No such file or directory". All files exist!
      Same for option --to-file. If I remove FILE1 from the source list,
      only FILE2 is compared. At an old system, this commands works
      perfect. I use this type of command for decades and had never such
      issues.</p>
    <p>Example code (bash):</p>
    <pre class="lang-bash s-code-block"><code data-highlighted="yes"
    class="hljs language-bash"><span class="hljs-comment"># create test files</span>
<span class="hljs-built_in">mkdir</span> -p other-dir
<span class="hljs-keyword">for</span> f <span class="hljs-keyword">in</span> {,other-dir/}file{1,2,3}.tmp; <span
    class="hljs-keyword">do</span> <span class="hljs-built_in">echo</span> <span
    class="hljs-string">"<span class="hljs-variable">$f</span>"</span> &gt; <span
    class="hljs-string">"<span class="hljs-variable">$f</span>"</span>; <span
    class="hljs-keyword">done</span>

<span class="hljs-comment"># test</span>
diff file{1,2,3}.tmp --from-file other-dir/
diff file{1,2,3}.tmp --to-file other-dir/

<span class="hljs-comment"># cleanup</span>
<span class="hljs-built_in">rm</span> -r file{1,2,3}.tmp other-dir/</code></pre>
    <p>Dirk Clemens</p>
  </body>
</html>

--------------hdB0wt8rHu14bwuwRjAaMla1--




