Patches item #984682, was opened at 2004-07-03 18:07
Message generated for change (Comment added) made by tkikuchi
You can respond by visiting:Þtail&atid00103&aid˜4682&group_id3

Category: command line scripts
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Submitted By: Arkadiusz Miskiewicz (arekm)
Assigned to: Tokio Kikuchi (tkikuchi)
Summary: header is not converted to unicode when sending reminder

Initial Comment:
[root@anduril cron]# su - mailman -s /bin/sh -c "python -S
/var/lib/mailman/cron/mailpasswds -l pld-rc-scripts"
Traceback (most recent call last):
File "/var/lib/mailman/cron/mailpasswds", line 239, in ?
File "/var/lib/mailman/cron/mailpasswds", line 214, in main
text += (header + '\n' + NL.join(table))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb3 in position
44: ordinal not in range(128)

the problem is that header is created:
header = '%-40s %-10s\n%-40s %-10s' % (
_('List'), _('Password // URL'), '----', '--------')

but for example Password in Polish contains non-ascii characters so
this patch is needed:

# Coerce everything to Unicode
+header = tounicode(header, enc)
text = tounicode(text, enc)
table = [tounicode(_t, enc) for _t in table]

This fixes problem for me.

Comment By: Tokio Kikuchi (tkikuchi)
Date: 2004-11-02 04:25

Logged In: YES

I'll take this because it's an i18n issue.
We may need more patch because passing unicode body to email
is broken in japanese environment.


You can respond by visiting:Þtail&atid00103&aid˜4682&group_id3

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupmailman-coders @
postedNov 2, '04 at 5:25a
activeNov 13, '04 at 11:48a

1 user in discussion 2 posts



site design / logo © 2022 Grokbase