[sysadmin-bin: 154/168] gnome-post-receive-email: utf-8 header



commit 5ce6093e6734107e539beffe6f1ccd9fa390e014
Author: Olav Vitters <olav vitters nl>
Date:   Tue Jun 14 20:50:23 2011 +0200

    gnome-post-receive-email: utf-8 header

 gnome-post-receive-email |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index aecb90a..76d1d08 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -114,9 +114,9 @@ class RefChange(object):
     def generate_header(self, out, subject, include_revs=True, oldrev=None, newrev=None, cc=None):
         user = os.environ['USER']
         if user_fullname:
-            from_address = "%s <%s src gnome org>" % (user_fullname, user)
+            from_address = u"%s <%s src gnome org>" % (user_fullname, user)
         else:
-            from_address = "%s src gnome org" % (user)
+            from_address = u"%s src gnome org" % (user)
 
         if cc is None:
             cc = self.cc
@@ -131,7 +131,7 @@ X-Git-Refname: %(refname)s
 """) % {
             'recipients': recipients,
             'cc': ','.join(cc),
-            'from_address': from_address,
+            'from_address': Header.Header(from_address, 'utf-8'),
             'subject': subject,
             'projectshort': projectshort,
             'refname': self.refname



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]