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:
https://sourceforge.net/tracker/?funcÞ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 ?
main()
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

Message:
Logged In: YES
user_idg709

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:
https://sourceforge.net/tracker/?funcÞtail&atid00103&aid˜4682&group_id3

Search Discussions

  • SourceForge.net at Nov 13, 2004 at 11:48 am
    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:
    https://sourceforge.net/tracker/?funcÞtail&atid00103&aid˜4682&group_id3

    Category: command line scripts
    Group: Mailman 2.1
    Status: Closed
    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 ?
    main()
    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-13 10:48

    Message:
    Logged In: YES
    user_idg709

    fixed in CVS Revision 2.13.2.4


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

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

    Message:
    Logged In: YES
    user_idg709

    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:
    https://sourceforge.net/tracker/?funcÞtail&atid00103&aid˜4682&group_id3

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-coders @
categoriespython
postedNov 2, '04 at 5:25a
activeNov 13, '04 at 11:48a
posts2
users1
websitelist.org

1 user in discussion

SourceForge.net: 2 posts

People

Translate

site design / logo © 2022 Grokbase