- Use utf-8 as default charset again.

- Fix silly error for touching unused variable in my patch.
This commit is contained in:
Jun Kuriyama 2007-03-06 13:48:01 +00:00
parent 1960b0f2cb
commit 5daa80e524
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=186673
3 changed files with 24 additions and 4 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= trac
PORTVERSION= 0.10.3
PORTREVISION= 1
CATEGORIES= japanese www devel python
MASTER_SITES= http://dist.bsdlab.org/ \
http://www.i-act.co.jp/project/products/downloads/

View file

@ -0,0 +1,11 @@
--- trac/mimeview/api.py.orig Tue Mar 6 16:30:30 2007
+++ trac/mimeview/api.py Tue Mar 6 16:30:40 2007
@@ -319,7 +319,7 @@
annotators = ExtensionPoint(IHTMLPreviewAnnotator)
converters = ExtensionPoint(IContentConverter)
- default_charset = Option('trac', 'default_charset', 'iso-8859-15',
+ default_charset = Option('trac', 'default_charset', 'utf-8',
u"""文字コードが設定されていないときのデフォルト値を設定します。""")
tab_width = IntOption('mimeviewer', 'tab_width', 8,

View file

@ -1,6 +1,14 @@
--- ./trac/notification.py.orig Sun Mar 4 18:14:39 2007
+++ ./trac/notification.py Sun Mar 4 21:58:03 2007
@@ -225,6 +225,13 @@
--- trac/notification.py.orig Sat Dec 9 19:06:15 2006
+++ trac/notification.py Tue Mar 6 16:31:37 2007
@@ -218,6 +218,7 @@
def format_header(self, key, name, email=None):
from email.Header import Header
maxlength = MAXHEADERLEN-(len(key)+2)
+ header = None
# Do not sent ridiculous short headers
if maxlength < 10:
raise TracError, "Header length is too short"
@@ -225,6 +226,13 @@
tmp = name.encode('ascii')
header = Header(tmp, 'ascii', maxlinelen=maxlength)
except UnicodeEncodeError:
@ -14,7 +22,7 @@
header = Header(name, self._charset, maxlinelen=maxlength)
if not email:
return header
@@ -343,12 +350,17 @@
@@ -343,12 +351,17 @@
headers['To'] = ', '.join(toaddrs)
if pcc:
headers['Cc'] = ', '.join(pcc)