GNU bug report logs - #68695
Please, fix documentation on whitespace in pathnames

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: Matěj Cepl <mcepl@HIDDEN>; Done: Jim Meyering <jim@HIDDEN>; Maintainer for diffutils is bug-diffutils@HIDDEN.

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


Received: (at 68695) by debbugs.gnu.org; 6 Jan 2025 09:08:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 06 04:08:36 2025
Received: from localhost ([127.0.0.1]:36627 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUj6A-0007jc-EB
	for submit <at> debbugs.gnu.org; Mon, 06 Jan 2025 04:08:36 -0500
Received: from flow-a7-smtp.messagingengine.com ([103.168.172.142]:52437)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <mcepl@HIDDEN>) id 1tUVdz-0002g6-Ri
 for 68695 <at> debbugs.gnu.org; Sun, 05 Jan 2025 13:46:37 -0500
Received: from phl-compute-01.internal (phl-compute-01.phl.internal
 [10.202.2.41])
 by mailflow.phl.internal (Postfix) with ESMTP id F1C41200412;
 Sun,  5 Jan 2025 13:46:27 -0500 (EST)
Received: from phl-imap-02 ([10.202.2.81])
 by phl-compute-01.internal (MEProxy); Sun, 05 Jan 2025 13:46:27 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cepl.eu; h=cc:cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm2; t=1736102787;
 x=1736106387; bh=DPDJrFmFwUpBsvfyRl4NiAX0gSBcWJkXbVFXsEJLAYQ=; b=
 aXfEJoe2cFf/XWIt20YckL59Kpn9fVFp7RNZxRoTVx2qCUTOeoPsgpFPNORCF7Af
 z1/zrEc8CVCTcwQO+VtA/UmbglZChCPHIRCuRdmXQQyuyaNpgT4hMmVb73DnTkvz
 4JCqim2dHvMRge47h2KynyHrTdS/PA94VwYuUutFrx89AcVnAK/VQsI5B/IUwtRW
 2/wJv8gX3twwdjKBS4GnnzrELqOKRLXu03tCxK6hHtXN2ahvvik3+M3tdqZ7tKn+
 aErlV0AZqQO82VCvj7nplp5Xnx/VlE5tW1oY3MbGjZd4Uz/d0+FD3GZs31e+in8n
 2V+2WQDAK2UsNXGP9pys5w==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1736102787; x=
 1736106387; bh=DPDJrFmFwUpBsvfyRl4NiAX0gSBcWJkXbVFXsEJLAYQ=; b=A
 NVTdv8RC7wyvjw3Es688rRkaLzS0QwgGgHTWx71IGnilYwCFW/qTQf42uxTcpcST
 llkKn2HbvYJ1iE6jvgmOCAiQo9lXH8e+ryfovRb5WK3bXg6J6gpttpxpkXHJuUSo
 fP1E62O6UtsyGFVU5CQF7WEwbhiw9d1Hzc75dhUn9rq5d+/xxRdeEn3PVejlT8Ip
 UTDZnV6eR/hyrdekaLsVEoRW0R9KBNvjLxUK5DveFLKhwaBhHg2/pHR6WSPf4WiR
 UA/0kahxdR2FKFl4tPDm22ccn31l6cU1JhU/mn5eZyP/aVO0GUWKgJdGGc7gEXFd
 Ngug7OOyHGcIJdOah4BQA==
X-ME-Sender: <xms:gtN6Z4Bq2qkgPBn_BuQ2FhXDWat3K-mgQ-3UH9Btg9OVm8974tYfQg>
 <xme:gtN6Z6h0pAOZlZ5YFCEidozlobkTeZk9yQ5SYTMRAAUAtsSsJsJqzBM7_qblrnsY_
 uLYZKMnL8CV1P5-Jqw>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudefkedguddujecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp
 uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg
 hnthhsucdlqddutddtmdenogfuuhhsphgvtghtffhomhgrihhnucdlgeelmdenucfjughr
 pefoggfgtgffkfevuffhvffofhgjsehtqhertdertdejnecuhfhrohhmpeforghtvmhjuc
 evvghplhcuoehmtggvphhlsegtvghplhdrvghuqeenucggtffrrghtthgvrhhnpeekuefg
 udduudeljedtgeefkeefgfejudekiedtgfetfeetteejieetveevheefgeenucffohhmrg
 hinhepghhithhhuhgsrdgtohhmpdgtvghplhhovhhirdgtiidpfihprdhmvgenucevlhhu
 shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmtggvphhlsegtvg
 hplhdrvghupdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphht
 thhopeeikeeileehseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtoheprghgrh
 huvghnsehlihhnsghithdrtghomhdprhgtphhtthhopehjihhmsehmvgihvghrihhnghdr
 nhgvth
X-ME-Proxy: <xmx:gtN6Z7nzFIBpegT8Be8xb7ViAGSjOIM5mfNQF3RNQ4tvzAuVNsqGMw>
 <xmx:gtN6Z-xnU73Z2Z8WxcnKHwrcuy4QxdvrvpzccGxe7UfaPB5Zz06Ulw>
 <xmx:gtN6Z9QLtT0av0IpjmFCSL4dC_T9DfxepSW4Hymjesfvj_ze3p3xkQ>
 <xmx:gtN6Z5YdDS_SdaKrLuHKLfhOygLSZBpgvcBMD2Ez7H8U882JSZufoA>
 <xmx:g9N6Z4OUs0BoQhJoH_kfC-x9Z0vK9ih3chlk2TdA6lEV_vukb8Yq0UvT>
Feedback-ID: i8c5e488c:Fastmail
Received: by mailuser.phl.internal (Postfix, from userid 501)
 id C048CB00069; Sun,  5 Jan 2025 13:46:26 -0500 (EST)
X-Mailer: MessagingEngine.com Webmail Interface
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8
Date: Sun, 05 Jan 2025 19:46:26 +0100
Message-Id: <D6UD2PJ750Z5.3DR9WPUQ21CQY@HIDDEN>
Subject: Re: [bug-diffutils] bug#68695: Please, fix documentation on
 whitespace in pathnames
From: =?utf-8?q?Mat=C4=9Bj_Cepl?= <mcepl@HIDDEN>
To: "Jim Meyering" <jim@HIDDEN>
X-Mailer: aerc 0.18.2
References: <CYN5Y9C66IW1.3AAYN9I2U5T2B@HIDDEN>
 <CA+8g5KH6e8u-iv=SrRYUC4jj8=_yLXvjzSHmXUa6sCvvTWWCTQ@HIDDEN>
In-Reply-To: <CA+8g5KH6e8u-iv=SrRYUC4jj8=_yLXvjzSHmXUa6sCvvTWWCTQ@HIDDEN>
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 68695
X-Mailman-Approved-At: Mon, 06 Jan 2025 04:08:32 -0500
Cc: 68695 <at> debbugs.gnu.org, Andreas Gruenbacher <agruen@HIDDEN>
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: -1.7 (-)

On Sun Jan 5, 2025 at 6:44 PM CET, Jim Meyering wrote:
> So at the very least, I'll adjust the documentation to reflect the above.
> Hoping that I can also soon say that upstream GNU patch handles these
> encoded names.

I would like just to emphasize that there are two distinct cases:
yes, filenames with $'\n' or $'\t' are really weird and unusual,
but filenames with a space are rather common. Even normal cpython
had (until recently: they apparently capitulated and replaced
spaces with underscores) directory
https://github.com/python/cpython/tree/3.9/Misc/NEWS.d/next/Core%20and%20Bu=
iltins,
which is part of every commit to the =E2=80=9CCore and Builtins=E2=80=9D
component of the Python interpreter.

--=20
http://matej.ceplovi.cz/blog/, @mcepl@HIDDEN
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
=20
So many time, the attitude of my heart is: =E2=80=9CGod, just tell us
what to do so we can do it=E2=80=A6without you.=E2=80=9D Independently.
  -- Gretchen Konnevik: On Josh Harris, Homeschooling, and
     Spiritual Formulas; https://wp.me/p69TD5-1Xv





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

Message received at 68695-done <at> debbugs.gnu.org:


Received: (at 68695-done) by debbugs.gnu.org; 5 Jan 2025 19:50:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 14:50:06 2025
Received: from localhost ([127.0.0.1]:35335 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUWdR-00068B-FF
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 14:50:05 -0500
Received: from mail-pj1-f50.google.com ([209.85.216.50]:56572)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <meyering@HIDDEN>)
 id 1tUWdP-00066T-Cr
 for 68695-done <at> debbugs.gnu.org; Sun, 05 Jan 2025 14:50:04 -0500
Received: by mail-pj1-f50.google.com with SMTP id
 98e67ed59e1d1-2ef89dbd8eeso14460072a91.0
 for <68695-done <at> debbugs.gnu.org>; Sun, 05 Jan 2025 11:50:03 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736106602; x=1736711402;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=0mtpiqKeTsmaia1ezISaQEUNASbu6SWXKSfhNXxbA+Y=;
 b=HXgQQkzBL76YZleAKhARXGnuVi64EPrMCXOPJO3iDWBcKD0SbVGpfWZTkHdjpiwowR
 9juwQ72yrnQTp1V3cBoHlf8vzxw28TqGsxxggtfM5JpnG61Icbng5a9dMPwTCzgr/dho
 zJFTPOoWjHzVzufWDyQeidTJEQwxXVFBLeT43gETpU62RtEv/T+MBQ/83Q1TOnKx+aVt
 wTTUXSZdlB4/OUIv9TC5Q4z/ySVDyyAcY3i+lyVvGVijg87RB2L52XaovGePWA28EcHt
 WZvoTSSMzaIWl8puu9+j/9vWwk0/xmSJITbYYKsCR6/CTGYdLOmbBL5ztjDzjlvt8au9
 GFOQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCUi4WKlp5mRs/v2s3e6ghykHIAdRERkRp1mCkbVjLkV0fpb05zt5M6rI7+GaI3HZctzBAlP8ipqO+Va <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YyMYSGiQnnTRpxGR3nGRTyknaVJwui7/ufCFUndZJUb1nW6BSSb
 63BZvWogC138VupqSZ7/BxMvl0LSPf7mV47CdhXkKAsOnV7e3oOX0ht1Q9juBxyDOXo1oMYOAvL
 DiDd74G0erLFKpmYxPWXclhi98LA=
X-Gm-Gg: ASbGncsMlzV7TqIhzLvQPDNyBo75RFu6v71eGQPmdKwB7OVedL7AAQL4cDQG66Iz+Ak
 syorxXhQbkfLta3cIpBAQ1DpEzavIVXTkrm3TTA==
X-Google-Smtp-Source: AGHT+IEd5NQPrV2B0UINKzpLIP2uspdazfRw7DEiNz/AUoRhJ8CDYWimR0B9UPIzZ0/aDKytNNs6Kk8+qxRVQcGkQ2o=
X-Received: by 2002:a17:90a:d88d:b0:2ee:863e:9ffc with SMTP id
 98e67ed59e1d1-2f452e4ace5mr73592754a91.21.1736106601742; Sun, 05 Jan 2025
 11:50:01 -0800 (PST)
MIME-Version: 1.0
References: <CYN5Y9C66IW1.3AAYN9I2U5T2B@HIDDEN>
 <CA+8g5KH6e8u-iv=SrRYUC4jj8=_yLXvjzSHmXUa6sCvvTWWCTQ@HIDDEN>
In-Reply-To: <CA+8g5KH6e8u-iv=SrRYUC4jj8=_yLXvjzSHmXUa6sCvvTWWCTQ@HIDDEN>
From: Jim Meyering <jim@HIDDEN>
Date: Sun, 5 Jan 2025 11:49:48 -0800
Message-ID: <CA+8g5KH9U=54eCZ33NvyVrrDF61H55=t7ktw4H6jKLLxKmnf5g@HIDDEN>
Subject: Re: [bug-diffutils] bug#68695: Please, fix documentation on
 whitespace in pathnames
To: =?UTF-8?Q?Mat=C4=9Bj_Cepl?= <mcepl@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 68695-done
Cc: 68695-done <at> debbugs.gnu.org, Andreas Gruenbacher <agruen@HIDDEN>
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: -0.8 (/)

> So at the very least, I'll adjust the documentation to reflect the above.
> Hoping that I can also soon say that upstream GNU patch handles these
> encoded names.

Pushed the documentation change here:
https://git.savannah.gnu.org/cgit/diffutils.git/commit/?id=dfaa846f093277db65944774497abb348e63760a
Marking this as "done".
Thanks again.




Notification sent to Matěj Cepl <mcepl@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Jim Meyering <jim@HIDDEN>:
You have taken responsibility. Full text available.

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


Received: (at 68695) by debbugs.gnu.org; 5 Jan 2025 17:44:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 05 12:44:37 2025
Received: from localhost ([127.0.0.1]:35038 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tUUg0-0007kn-Jy
	for submit <at> debbugs.gnu.org; Sun, 05 Jan 2025 12:44:36 -0500
Received: from mail-pj1-f53.google.com ([209.85.216.53]:57694)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <meyering@HIDDEN>)
 id 1tUUfx-0007kb-Md
 for 68695 <at> debbugs.gnu.org; Sun, 05 Jan 2025 12:44:35 -0500
Received: by mail-pj1-f53.google.com with SMTP id
 98e67ed59e1d1-2ee9a780de4so14388288a91.3
 for <68695 <at> debbugs.gnu.org>; Sun, 05 Jan 2025 09:44:33 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1736099073; x=1736703873;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=1QiW8VlzpJfbJanmKZKkzGTIEebv/+iTg4hIxIKzFHI=;
 b=pPB0lAylm9sIKJlDzi3wlU8VOc0lo0iwzzFzF5GNV34nqt1AriPLY6ZjlNcKQ1/Dlf
 kwyt9TFvj4Eycc+tvWw6ci55ksHa+v9JDmqt7S66+BW20NdUny7x0X4eZC0LIlI3uvtB
 64e+Uy16o1Z5XsWpUb/5bw4op76mhVc1hFmDRIumd74sxubWxuEma+4o9lvAZf94mdpC
 AVRu0Gnu3wBM+A4EZ9dleYZnWWeFKctSgL8b98cxNNOo0TC1682icttOnwaEsNZ3A5Ee
 9KCca47POJdf21DHzWEVd3CfWiDb2HVojDWVYSqzK0DyNcpoUMHbsRk1RuNhW4LNPAxg
 Q5Fw==
X-Gm-Message-State: AOJu0Yx3l9b7IN7VteVJz1U3j8s+MF6bJVLoixQL8GSMQdxC2Q/mGLVF
 eIlSjDxiRJ14YLu3yA8QQhHhtUb2cnh0RpSuaOm/ZdNdKFM3PpqdOUoFbT0oYXrcB9wwy7fLpZx
 nPqI52Jc56EqIhM8M2DYGc3V8uY4=
X-Gm-Gg: ASbGncum06PN1pCH+6QWSAg0QRZgAQcY3KjWqDb3USLfpi/q8r4x5Mdvjb79k4fqT2Q
 bCWMtawCG2UiXtG5h/4TitEY+zpYZEOO/0PApcw==
X-Google-Smtp-Source: AGHT+IG2KQg1P2vSg8UpsZocgwMx/hjj6TydIKltWgK/n2zY1EAa4OnvqHapEmNTgYR97X0z7WXoYimrMuMg635mU/Q=
X-Received: by 2002:a17:90b:2dc3:b0:2ee:94d1:7a89 with SMTP id
 98e67ed59e1d1-2f452dfcc91mr80344245a91.1.1736099072647; Sun, 05 Jan 2025
 09:44:32 -0800 (PST)
MIME-Version: 1.0
References: <CYN5Y9C66IW1.3AAYN9I2U5T2B@HIDDEN>
In-Reply-To: <CYN5Y9C66IW1.3AAYN9I2U5T2B@HIDDEN>
From: Jim Meyering <jim@HIDDEN>
Date: Sun, 5 Jan 2025 09:44:20 -0800
Message-ID: <CA+8g5KH6e8u-iv=SrRYUC4jj8=_yLXvjzSHmXUa6sCvvTWWCTQ@HIDDEN>
Subject: Re: [bug-diffutils] bug#68695: Please, fix documentation on
 whitespace in pathnames
To: =?UTF-8?Q?Mat=C4=9Bj_Cepl?= <mcepl@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 68695
Cc: 68695 <at> debbugs.gnu.org, Andreas Gruenbacher <agruen@HIDDEN>
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: -0.8 (/)

On Wed, Jan 24, 2024 at 11:16=E2=80=AFAM Mat=C4=9Bj Cepl <mcepl@HIDDEN> wr=
ote:
> https://www.gnu.org/software/diffutils/manual/html_node/Unusual-File-Name=
s.html#Unusual%20File%20Names
> still contains rather disturbing information, that diffutils are
> incapable working with space in filenames/dirnames. I was just
> deciding to stop using quilt because of that information, when I
> was told clearly, that just the documentation is obsolete. Could
> somebody fix that page, please?

Thank you for reporting that. Here's the current text:

When a file name contains an unusual character like a newline or white
space, =E2=80=98diff -r=E2=80=99 generates a patch that =E2=80=98patch=E2=
=80=99 cannot parse.  The
problem is with format of =E2=80=98diff=E2=80=99 output, not just with =E2=
=80=98patch=E2=80=99, because
with odd enough file names one can cause =E2=80=98diff=E2=80=99 to generate=
 a patch that
is syntactically correct but patches the wrong files.  The format of
=E2=80=98diff=E2=80=99 output should be extended to handle all possible fil=
e names.

GNU diff's format now accommodates file names containing unusual
characters, GNU patch still fails to parse the resulting diff. Here's
a small demo:
This shows that the output format of diff -u **does** work with a
newline-afflicted file name:

$ f=3D$'a\na'; echo > "$f"; :>b; diff -u "$f" b
--- "a\na"      2025-01-05 09:32:36.678894920 -0800
+++ b   2025-01-05 09:32:36.678894920 -0800
@@ -1 +0,0 @@
-

Even "diff -r" encodes the unusually-named file:

$ mkdir -p 1 2; a=3D$'a\na'; echo > "1/$a"; :>"2/$a"; diff -r 1 2
diff -r "1/a\na" "2/a\na"
1d0
<

However, even the latest upstream version of GNU patch
(v2.7.6-202-g5bac274) cannot deal such an encoded file name:

$ f=3D$'a\na'; echo > "$f"; :>b; diff -u "$f" b |patch -R
patch: **** quoted string "a\n..." contains newline

So at the very least, I'll adjust the documentation to reflect the above.
Hoping that I can also soon say that upstream GNU patch handles these
encoded names.




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

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


Received: (at submit) by debbugs.gnu.org; 24 Jan 2024 19:15:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 24 14:15:51 2024
Received: from localhost ([127.0.0.1]:46605 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rSij1-0000xO-0i
	for submit <at> debbugs.gnu.org; Wed, 24 Jan 2024 14:15:51 -0500
Received: from lists.gnu.org ([2001:470:142::17]:56522)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mcepl@HIDDEN>) id 1rSiPB-0000D3-2I
 for submit <at> debbugs.gnu.org; Wed, 24 Jan 2024 13:55:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mcepl@HIDDEN>) id 1rSiOy-0002Pe-U3
 for bug-diffutils@HIDDEN; Wed, 24 Jan 2024 13:55:09 -0500
Received: from redcrew.org ([37.157.195.192])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <mcepl@HIDDEN>) id 1rSiOx-0007Y5-0w
 for bug-diffutils@HIDDEN; Wed, 24 Jan 2024 13:55:08 -0500
Received: from localhost (nat2.prg.suse.com [195.250.132.146])
 (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by redcrew.org (Postfix) with ESMTPSA id 8DECF8F67
 for <bug-diffutils@HIDDEN>; Wed, 24 Jan 2024 19:55:02 +0100 (CET)
Content-Type: multipart/signed;
 boundary=36a99fe4f9b1b5cbddacbfc1eaaeeeb61f37e0f2da325d04cd3249ebd49d;
 micalg=pgp-sha1; protocol="application/pgp-signature"
Mime-Version: 1.0
Date: Wed, 24 Jan 2024 19:55:02 +0100
Message-Id: <CYN5Y9C66IW1.3AAYN9I2U5T2B@HIDDEN>
Subject: Please, fix documentation on whitespace in pathnames
From: =?utf-8?q?Mat=C4=9Bj_Cepl?= <mcepl@HIDDEN>
To: <bug-diffutils@HIDDEN>
X-Mailer: aerc 0.16.0
Received-SPF: pass client-ip=37.157.195.192; envelope-from=mcepl@HIDDEN;
 helo=redcrew.org
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 24 Jan 2024 14:15:48 -0500
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: -0.0 (/)

--36a99fe4f9b1b5cbddacbfc1eaaeeeb61f37e0f2da325d04cd3249ebd49d
Mime-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=UTF-8

https://www.gnu.org/software/diffutils/manual/html_node/Unusual-File-Names.=
html#Unusual%20File%20Names
still contains rather disturbing information, that diffutils are
incapable working with space in filenames/dirnames. I was just
deciding to stop using quilt because of that information, when I
was told clearly, that just the documentation is obsolete. Could
somebody fix that page, please?

Thank you,

Mat=C4=9Bj Cepl

--=20
http://matej.ceplovi.cz/blog/, @mcepl@HIDDEN
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
=20
And religious texts are a bit like software standards, the
interpretation is always the tricky and complicated bit.
    -- Alan Cox
--=20

--36a99fe4f9b1b5cbddacbfc1eaaeeeb61f37e0f2da325d04cd3249ebd49d
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iGwEABECACwWIQSJ70vGKIq/QxurJcPgn+8l2WSErAUCZbFdBg4cbWNlcGxAY2Vw
bC5ldQAKCRDgn+8l2WSErJdMAJ9SZnOkP2u+EOfXya8H4Lcy5IJ9JwCffJ3Ku3bd
AHOlc+5eyhi2Y8mtyMs=
=x2g6
-----END PGP SIGNATURE-----

--36a99fe4f9b1b5cbddacbfc1eaaeeeb61f37e0f2da325d04cd3249ebd49d--




Acknowledgement sent to Matěj Cepl <mcepl@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-diffutils@HIDDEN. Full text available.
Report forwarded to bug-diffutils@HIDDEN:
bug#68695; 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: Sun, 12 Jan 2025 05:45:02 UTC

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