[PATCH] convert ascii subject option to unicode

chaica chaica at ohmytux.com
Mon Aug 3 18:01:20 UTC 2009


---
 bin/reportbug |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/bin/reportbug b/bin/reportbug
index 68f18d0..0930939 100755
--- a/bin/reportbug
+++ b/bin/reportbug
@@ -985,12 +985,15 @@ class UI(object):
         quietly = self.options.quietly
         severity = self.options.severity
         smtphost = self.options.smtphost
-        subject = self.options.subject
         bts = self.options.bts or 'debian'
         sysinfo = debianbts.SYSTEMS[bts]
         rtype = self.options.type or sysinfo.get('type')
         attachments = self.options.attachments
         pgp_addr = self.options.keyid
+        if not self.options.subject:
+            subject = self.options.subject
+        else:
+            subject = self.options.subject.decode(charset, 'replace')
 
         if self.options.body:
             body = textwrap.fill(self.options.body)
-- 
1.6.2.3


--=-f3WHZVSTcPkXIgH8VWG8--






More information about the Reportbug-maint mailing list