#982657 /usr/bin/debdiff: debdiff: writes wrong patched-file filenames if they contain nōn-ASCII characters

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Thorsten Glaser
Date:
2021-02-13 00:54:04 UTC
Severity:
normal
#982657#5
Date:
2021-02-13 00:51:47 UTC
From:
To:
x=screen_4.8.0-5wtf1.dsc;
After doing…

TMPDIR=/var/tmp debdiff \
    screen_4.8.0-5.dsc \
    screen_4.8.0-5wtf1.dsc \
    >screen_4.8.0-5wtf1.debdiff

… the created debdiff contains correct…

diff -Nru screen-4.8.0/debian/patches/99999999999999999999999999999997_segfault.patch screen-4.8.0/debian/patches/99999999999999999999999999999997_segfault.patch
--- screen-4.8.0/debian/patches/99999999999999999999999999999997_segfault.patch	1970-01-01 01:00:00.000000000 +0100
+++ screen-4.8.0/debian/patches/99999999999999999999999999999997_segfault.patch	2021-02-13 01:28:34.000000000 +0100
@@ -0,0 +1,13 @@

… and incorrect patches:

diff -Nru "/var/tmp/io4vcduSrR/screen-4.8.0/debian/patches/99999999999999999999999999999998_yt\303\274t\303\274.patch" "/var/tmp/K7wrDpUt7q/screen-4.8.0/debian/patches/99999999999999999999999999999998_yt\303\274t\303\274.patch"
--- "/var/tmp/io4vcduSrR/screen-4.8.0/debian/patches/99999999999999999999999999999998_yt\303\274t\303\274.patch"	1970-01-01 01:00:00.000000000 +0100
+++ "/var/tmp/K7wrDpUt7q/screen-4.8.0/debian/patches/99999999999999999999999999999998_yt\303\274t\303\274.patch"	2020-06-20 02:31:33.000000000 +0200
@@ -0,0 +1,41 @@

Apparently, debdiff fails to fix up the pathnames if the file contains umlauts.
--- /etc/devscripts.conf ---
Empty.
--- ~/.devscripts --- DEBCHANGE_AUTO_NMU=no DEBCHANGE_MAINTTRAILER=no DEBCHANGE_MULTIMAINT_MERGE=yes