[svn] r5359 - trunk/tools/dar

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Thu May 3 18:30:10 CEST 2007


Author: dag
Date: 2007-05-03 18:30:09 +0200 (Thu, 03 May 2007)
New Revision: 5359

Modified:
   trunk/tools/dar/dar-perl.py
Log:
Make unicode characters work.

Modified: trunk/tools/dar/dar-perl.py
===================================================================
--- trunk/tools/dar/dar-perl.py	2007-05-03 14:38:53 UTC (rev 5358)
+++ trunk/tools/dar/dar-perl.py	2007-05-03 16:30:09 UTC (rev 5359)
@@ -165,10 +165,11 @@
 print '# $Id$'
 print '# Authority:', logname
 
-### FIXME: Make unicode characters work, instead of removing them
-#author.encode('latin-1', errors='replace') 
-author = author.encode('latin-1', 'replace') 
-print "# Upstream: %s <%s>" % (author, email)
+author = author.encode('utf8', 'replace') 
+if email:
+	print "# Upstream: %s <%s>" % (author, email)
+else:
+	print "# Upstream: %s" % author
 print
 print '%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)'
 print '%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)'




More information about the commits mailing list