Patches item #667026, was opened at 2003-01-13 07:42
Message generated for change (Comment added) made by tkikuchi
You can respond by visiting:
https://sourceforge.net/tracker/?funcÞtail&atid00103&aidf7026&group_id3

Category: Pipermail
Group: Mailman 2.1
Status: Closed
Resolution: None
Priority: 6
Submitted By: Tokio Kikuchi (tkikuchi)
Assigned to: Nobody/Anonymous (nobody)
Summary: HyperArch.py unicode substitution

Initial Comment:
bin/arch and HyperArch.py produced error when i18n
characters are present in the message body. I suspect
that the text is in unicode string. This patch tests if
text is unicode and then make the substitute string
unicode.

File
"/usr/home/mailman/mailman-21/Mailman/Archiver/pipermail.py",
line 592, i
n add_article
temp = self.format_article(article)
File
"/usr/home/mailman/mailman-21/Mailman/Archiver/HyperArch.py",
line 1192,
in format_article
self.__processbody_URLquote(lines)
File
"/usr/home/mailman/mailman-21/Mailman/Archiver/HyperArch.py",
line 1131,
in __processbody_URLquote
text = re.sub('@', _(' at '), text)
File "/usr/local/lib/python2.1/sre.py", line 63, in sub
return _compile(pattern, 0).sub(repl, string, count)
File "/usr/local/lib/python2.1/sre.py", line 164, in _sub
return _subn(pattern, template, string, count)[0]
File "/usr/local/lib/python2.1/sre.py", line 185, in
_subn
append(filter(m))
File "/usr/local/lib/python2.1/sre.py", line 173, in
filter
return sre_parse.expand_template(template, match)
File "/usr/local/lib/python2.1/sre_parse.py", line
732, in expand_template
return string.join(literals, sep)
File "/usr/local/lib/python2.1/string.py", line 128,
in join
return sep.join(words)
UnicodeError: ASCII decoding error: ordinal not in
range(128)


----------------------------------------------------------------------
Comment By: Tokio Kikuchi (tkikuchi)
Date: 2003-12-25 12:48

Message:
Logged In: YES
user_idg709

merged into #865661.

----------------------------------------------------------------------

Comment By: Tokio Kikuchi (tkikuchi)
Date: 2003-02-20 00:26

Message:
Logged In: YES
user_idg709

I think this deserves to be included in next release
(2.1.2). So, increment priority and clean up old patch.


----------------------------------------------------------------------

Comment By: Tokio Kikuchi (tkikuchi)
Date: 2003-02-04 06:45

Message:
Logged In: YES
user_idg709

Update this patch for small bug. Charset defaults to 'us-ascii'.


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?funcÞtail&atid00103&aidf7026&group_id3

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-coders @
categoriespython
postedDec 25, '03 at 7:48a
activeDec 25, '03 at 7:48a
posts1
users1
websitelist.org

1 user in discussion

SourceForge.net: 1 post

People

Translate

site design / logo © 2022 Grokbase