Hi, On Tue, Nov 30, 2021 at 11:59:16AM +0000, Simon McVittie wrote: > Package: git-buildpackage > Version: 0.9.25 > Severity: wishlist > > To reproduce: add patches to the patch series whose author has a non-ASCII > name, for example commit b01f371ce61f8077bb70a2b6024f4163fafffc5c in > GTK 3, from Nelson Benítez León; then `gbp pq export`. > > Expected result: Debian packaging is an 8-bit-clean format that expects > UTF-8, so the patch in debian/patches should have > "From: Nelson Benítez León <email address here>", encoded in UTF-8. > > Actual result: the Python modules used by gbp pq assume a 7-bit email > transport, and the patch in debian/patches starts with > "From: =?utf-8?b?TmVsc29uIEJlbsOtdGV6IExlw7Nu?= <email address here>", > which is not very good from the perspective of crediting the appropriate > author or human-readability of the patch. > > Names with fewer non-ASCII characters end up in quoted-printable rather > than base64, for example Timm Bäder -> =?utf-8?q?Timm_B=C3=A4der?=, which > is slightly more readable but still not great. > > Would it be possible to tell the email modules to avoid using this encoding, > or explicitly decode UTF-8 in the email headers during DEP-3 > formatting?
I'd welcome patches here. Cheers, -- Guido