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 | |
parent | 6df5e2adfa27b6aa5900a4bdcdee3551ea52f45b (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')
-rw-r--r-- | japanese/trac/Makefile | 2 | ||||
-rw-r--r-- | japanese/trac/files/patch-Notify.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/japanese/trac/Makefile b/japanese/trac/Makefile index 8f1fba1b6352..e5eb5186b339 100644 --- a/japanese/trac/Makefile +++ b/japanese/trac/Makefile @@ -7,7 +7,7 @@ PORTNAME= trac PORTVERSION= 0.9.6 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= japanese www devel python MASTER_SITES= http://dist.bsdlab.org/ \ http://www.i-act.co.jp/project/products/downloads/ 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 |