| Summary: | Bugzilla notices about commits have missing Unicode characters | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Services | Reporter: | Yuri Victorovich <yuri> | ||||
| Component: | Core Infrastructure | Assignee: | Oleksandr Tymoshenko <gonzo> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | CC: | brd, gonzo | ||||
| Priority: | --- | ||||||
| Version: | unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Yuri Victorovich
2017-11-12 19:27:42 UTC
Over to the team that maintains bugzilla. I was thinking that it's maybe the subversion server that isn't UTF8 compliant, not bugzilla. (In reply to Yuri Victorovich from comment #2) No, looks like it's Bugzilla fault. mailman archive looks good: https://lists.freebsd.org/pipermail/svn-ports-all/2017-November/166036.html And SVN mail header seems to use UTF-8 at least for src messages: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Created attachment 190638 [details]
utf-8 fix for notify_bz.sh
commit notification is sent via email by calling notify_bz.sh script in svn commit hook. This script doesn't add Content-Encoding headers so bugzilla parser assumes it is latin-1. Attached patch fixes the problem. Assigning back to Core Infrastructure team for commit. (In reply to Oleksandr Tymoshenko from comment #5) Ping. Any updates on this? I can commit the change if clusteradm@ approves it. A commit references this bug: Author: gonzo Date: Mon Apr 2 20:12:25 UTC 2018 New revision: 331884 URL: https://svnweb.freebsd.org/changeset/base/331884 Log: Make bugzilla notification email UTF-8 compatible Add Content-Transfer-Encoding and Content-Type headers to indicate that email body is UTF-8. Without them Bugzilla's email parser defaults to latin-1 encoding and if there are UTF-8 charasters in commit messages they get corrupted in refrenced PR's comment text. PR: 223634 Changes: svnadmin/hooks/scripts/notify_bz.sh |