Jan Kohnert wrote: > >Mark Sapiro schrieb: >> >> Thus it appears that there may be a scrubber issue when the character >> set of the incoming message is iso-8859-1 but the i18n translated >> canned messages are utf-8. >> >> What mailman version is this? > >Leaving your comment completely in heare for reference; as said above, >this is v2.1.9.
Sorry, somehow I overlooked your mention of the version in the OP. Anyway, this is definitely a scrubber issue. I see why it occurs, but I'm not yet sure how to fix it. The problem is when the character set of the translation returned by _('-------------- next part --------------\n') is not compatible with the character set of the message being scrubbed, the translation can be garbled. I think we should be using the character set of the list's preferred language rather than the character set of the message in this case, but the process is complicated and I'm not sure how to do it. If you want, you can try the attached scrubber.patch.txt (apply to Mailman/Handlers/Scrubber.py). -- Mark Sapiro <[EMAIL PROTECTED]> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
--- Scrubber.py 2006-02-19 13:03:38.000000000 -0800 +++ Scrubber.new.py 2006-11-23 10:34:41.328565700 -0800 @@ -380,6 +380,11 @@ text.append(t) # Now join the text and set the payload sep = _('-------------- next part --------------\n') + try: + s = unicode(sep, lcset, 'replace') + sep = s.encode(charset, 'replace') + except (UnicodeError, LookupError, ValueError): + pass replace_payload_by_text(msg, sep.join(text), charset) return msg
------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp