retitle 787511 libpython3.9-stdlib: double embarassing failure in RFC2047 eMail 
header encoding
found 787511 3.9.10-2
tags 787511 + bookworm sid
thanks

The bug’s also still pertinent in bullseye, see previous message,
as well as sid:

(sid-amd64)tglase@tglase:~ $ python3 x.py3 
pöstal foo bar baz foo bar baz foo bar baz foo bar baz
Subject: 
=?iso-8859-1?q?p=F6stal_foo_bar_baz_foo_bar_baz_foo_bar_baz_foo_bar_baz?=


[service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit unterschiedlichen
Subject: 
=?utf-8?q?=5Bservice-Aufgaben_S=26W-Team=5D=5B=2319415=5D_VM=27=27s_aufsetzen_mit_unterschiedlichen?=


(sid-amd64)tglase@tglase:~ $ cat x.py3 
from email.message import Message
from email.header import Header
def testit(text, encoding):
        msg = Message()
        h = Header(text, encoding)
        msg['Subject'] = h
        print(h)
        print(msg.as_string())
testit('p\xf6stal foo bar baz foo bar baz foo bar baz foo bar baz', 
'iso-8859-1')
testit("[service-Aufgaben S&W-Team][#19415] VM''s aufsetzen mit 
unterschiedlichen", 'UTF-8')


It apparently was, *ahem*, “forgotten” because the name of the package
changed and the bug was not carried over to the new name…

Incidentally, no, reporting bugs regarding encoding issues upstream is
n̲o̲t̲ easily possible, because upstream’s bugtracker errors out with
encoding errors if trying that… see https://bugs.python.org/issue46701
(encoding in Python and py3k both is a neverending joke…)

bye,
//mirabilos
-- 
Infrastrukturexperte • tarent solutions GmbH
Am Dickobskreuz 10, D-53121 Bonn • http://www.tarent.de/
Telephon +49 228 54881-393 • Fax: +49 228 54881-235
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

                        ****************************************************
/⁀\ The UTF-8 Ribbon
╲ ╱ Campaign against      Mit dem tarent-Newsletter nichts mehr verpassen:
 ╳  HTML eMail! Also,     https://www.tarent.de/newsletter
╱ ╲ header encryption!
                        ****************************************************

Reply via email to