mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
- Use utf-8 as default charset again.
- Fix silly error for touching unused variable in my patch.
This commit is contained in:
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
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= trac
|
PORTNAME= trac
|
||||||
PORTVERSION= 0.10.3
|
PORTVERSION= 0.10.3
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= japanese www devel python
|
CATEGORIES= japanese www devel python
|
||||||
MASTER_SITES= http://dist.bsdlab.org/ \
|
MASTER_SITES= http://dist.bsdlab.org/ \
|
||||||
http://www.i-act.co.jp/project/products/downloads/
|
http://www.i-act.co.jp/project/products/downloads/
|
||||||
|
|
11
japanese/trac/files/patch-api.py
Normal file
11
japanese/trac/files/patch-api.py
Normal 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,
|
|
@ -1,6 +1,14 @@
|
||||||
--- ./trac/notification.py.orig Sun Mar 4 18:14:39 2007
|
--- trac/notification.py.orig Sat Dec 9 19:06:15 2006
|
||||||
+++ ./trac/notification.py Sun Mar 4 21:58:03 2007
|
+++ trac/notification.py Tue Mar 6 16:31:37 2007
|
||||||
@@ -225,6 +225,13 @@
|
@@ -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')
|
tmp = name.encode('ascii')
|
||||||
header = Header(tmp, 'ascii', maxlinelen=maxlength)
|
header = Header(tmp, 'ascii', maxlinelen=maxlength)
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
|
@ -14,7 +22,7 @@
|
||||||
header = Header(name, self._charset, maxlinelen=maxlength)
|
header = Header(name, self._charset, maxlinelen=maxlength)
|
||||||
if not email:
|
if not email:
|
||||||
return header
|
return header
|
||||||
@@ -343,12 +350,17 @@
|
@@ -343,12 +351,17 @@
|
||||||
headers['To'] = ', '.join(toaddrs)
|
headers['To'] = ', '.join(toaddrs)
|
||||||
if pcc:
|
if pcc:
|
||||||
headers['Cc'] = ', '.join(pcc)
|
headers['Cc'] = ', '.join(pcc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue