[sysadmin-bin: 120/168] UTF-8 by Todd Zullinger causes traceback errors, bgo#590156



commit 5070f7b1597607225dd51139ed44f8b757c400c4
Author: Olav Vitters <olav bkor dhs org>
Date:   Wed Jul 29 22:01:31 2009 +0200

    UTF-8 by Todd Zullinger causes traceback errors, bgo#590156

 gnome-post-receive-email |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/gnome-post-receive-email b/gnome-post-receive-email
index c60f968..9aca311 100755
--- a/gnome-post-receive-email
+++ b/gnome-post-receive-email
@@ -874,10 +874,7 @@ def main():
         if m:
             fullname = m.group(1).strip()
             if fullname != "":
-                try:
-                    user_fullname = unicode(fullname, 'ascii')
-                except UnicodeDecodeError:
-                    user_fullname = Header.Header(fullname, 'utf-8').encode()
+                user_fullname = fullname
 
     changes = []
 



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