#3930: GIT commit e-mail report is not UTF-8 aware
Fedora Release Engineering
rel-eng at fedoraproject.org
Wed Aug 4 12:53:38 UTC 2010
#3930: GIT commit e-mail report is not UTF-8 aware
--------------------+-------------------------------------------------------
Reporter: ppisar | Owner: rel-eng at lists.fedoraproject.org
Type: defect | Status: new
Milestone: | Component: cvs
Keywords: |
--------------------+-------------------------------------------------------
When git commit is performed, git server sends e-mail to package owner and
to scm-commits at l.f.o. If commiter display names contains non-ASCII
characters, the Subject: header in sent e-mail is mall-formed.
Example with "Marcela Mašláňová":
{{{
00000000 53 75 62 6a 65 63 74 3a 20 5b 70 65 72 6c 2d 70 |Subject:
[perl-p|
00000010 69 70 5d 20 2a 20 57 65 64 20 41 75 67 20 20 34 |ip] * Wed Aug
4|
00000020 20 32 30 31 30 20 4d 61 72 63 65 6c 61 20 4d 61 | 2010 Marcela
Ma|
00000030 c5 a1 6c c3 a1 c5 6f 76 c3 a1 20 3c 6d 6d 61 73 |..l...ov..
<mmas|
00000040 6c 61 6e 6f 40 72 65 64 68 61 74 2e 63 6f 6d 3e
|lano at redhat.com>|
00000050 20 31 2e 31 36 2d 33 20 2d 20 72 65 6e 61 6d 65 | 1.16-3 -
rename|
00000060 20 70 69 70 20 74 6f 20 70 65 72 6c 2d 70 69 70 | pip to perl-
pip|
00000070 20 62 65 63 61 75 73 0a | becaus.|
00000078
}}}
Decoded as UTF-8:
{{{Subject: [perl-pip] * Wed Aug 4 2010 Marcela Mašlá�vá
<mmaslano at redhat.com> 1.16-3 - rename pip to perl-pip becaus}}}
As you can see the header value (1) does not declares non-ASCII encoding,
and (2) is not valid UTF-8 at all (broken "ň" character).
According RFC defining e-mail, the header value must be US-ASCII. If other
characters should be transported, special prologue declaring character set
must be embedded and the string must be encoded into US-ASCII alpahabet
(e.g. quoted-printable).
--
Ticket URL: <https://fedorahosted.org/rel-eng/ticket/3930>
Fedora Release Engineering <http://fedorahosted.org/rel-eng>
Release Engineering for the Fedora Project
More information about the rel-eng
mailing list