svn commit: r331884 - svnadmin/hooks/scripts

Oleksandr Tymoshenko gonzo at FreeBSD.org
Mon Apr 2 20:12:25 UTC 2018


Author: gonzo
Date: Mon Apr  2 20:12:25 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

Modified:
  svnadmin/hooks/scripts/notify_bz.sh

Modified: svnadmin/hooks/scripts/notify_bz.sh
==============================================================================
--- svnadmin/hooks/scripts/notify_bz.sh	Mon Apr  2 18:10:41 2018	(r331883)
+++ svnadmin/hooks/scripts/notify_bz.sh	Mon Apr  2 20:12:25 2018	(r331884)
@@ -26,6 +26,8 @@ for pr in $PRS; do
 		echo "From: commit-hook at freebsd.org"
 		echo "To: notify-bz at freebsd.org"
 		echo "Subject: [Bug $pr]"
+		echo "Content-Type: text/plain; charset=UTF-8"
+		echo "Content-Transfer-Encoding: 8bit"
 		echo ""
 		echo "A commit references this bug:"
 		echo ""


More information about the svn-src-svnadmin mailing list