diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-09-04 11:27:35 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2006-09-04 11:27:35 +0000 |
commit | 03f9988bc466700c49f6e68bc8a92cb82b2c327d (patch) | |
tree | 8f357e630d85d676fe57c53b84e1d3ce9876ab94 /japanese/trac/files | |
parent | - Add GSM - GSM audio codec support (diff) |
More Unicode conversions to avoid failure.
Submitted by: HASEGAWA Nobuaki <junior@pc.mycom.co.jp>
Notes
Notes:
svn path=/head/; revision=172169
Diffstat (limited to 'japanese/trac/files')
-rw-r--r-- | japanese/trac/files/patch-Notify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/japanese/trac/files/patch-Notify.py b/japanese/trac/files/patch-Notify.py index b05ecfdc183b..0bd01259038a 100644 --- a/japanese/trac/files/patch-Notify.py +++ b/japanese/trac/files/patch-Notify.py @@ -15,7 +15,7 @@ - msg = MIMEMultipart() - msg.attach(MIMEText(body, 'plain', 'utf-8')) - msg.epilogue = '' -+ body_esc = string.replace(unicode(body, 'utf-8'), u'\uff5e', u'\u301c') ++ body_esc = string.replace(unicode(body, 'utf-8'), u'\uff5e', u'\u301c').replace(u'\u2225', u'\u2016').replace(u'\uff0d', u'\u2212') + body = body_esc.encode('japanese.c.iso-2022-jp') + msg = MIMEText(body, 'plain', 'iso-2022-jp') msg['X-Mailer'] = 'Trac %s, by Edgewall Software' % __version__ @@ -25,7 +25,7 @@ msg['X-URL'] = self.config.get('project','url') - msg['Subject'] = Header(self.subject, 'utf-8') + subj = unicode(self.subject, 'utf-8') -+ subj_esc = string.replace(subj, u'\uff5e', u'\u301c') ++ subj_esc = string.replace(subj, u'\uff5e', u'\u301c').replace(u'\u2225', u'\u2016').replace(u'\uff0d', u'\u2212') + msg['Subject'] = Header(subj_esc.encode('japanese.c.iso-2022-jp'), 'iso-2022-jp') msg['From'] = '%s <%s>' % (projname, self.from_email) msg['Sender'] = self.from_email |