[ mailman-Bugs-1435722 ] Subscription fails with some Language combinations

SourceForge.net noreply at sourceforge.net
Tue Feb 21 22:24:28 CET 2006

Bugs item #1435722, was opened at 2006-02-21 09:41
Message generated for change (Comment added) made by kst
You can respond by visiting: 

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: (un)subscribing
Group: 2.1 (stable)
Status: Open
Resolution: None
Priority: 5
Submitted By: Klaus Steinberger (kst)
Assigned to: Nobody/Anonymous (nobody)
Summary: Subscription fails with some Language combinations

Initial Comment:
I have some list with both english(USA) and german
language enabled. If somebody tries to subscribe and
selects german language, they get the "We hit a bug
message". This does not happen if german is the only
option, just if both english and german are enabled.
Also english must be the default to hit the bug.

Here are the error log details:

admin(4095): [----- Mailman Version: 2.1.7 -----]
admin(4095): [----- Traceback ------]
admin(4095): Traceback (most recent call last):
admin(4095):   File "/var/mailman/scripts/driver", line
101, in run_main
admin(4095):     main()
admin(4095):   File
"/var/mailman/Mailman/Cgi/subscribe.py", line 96, in main
admin(4095):     process_form(mlist, doc, cgidata,
admin(4095):   File
"/var/mailman/Mailman/Cgi/subscribe.py", line 176, in
admin(4095):     mlist.AddMember(userdesc, remote)
admin(4095):   File "/var/mailman/Mailman/MailList.py",
line 899, in AddMember
admin(4095):     msg['Subject'] =
self.GetConfirmJoinSubject(realname, cookie)
admin(4095):   File "/var/mailman/Mailman/MailList.py",
line 216, in GetConfirmJoinSubject
admin(4095):     cset, header_name='subject')
admin(4095):   File
line 188, in __init__
admin(4095):   File
line 272, in append
admin(4095): UnicodeError: ASCII decoding error:
ordinal not in range(128)
admin(4095): [----- Python Information -----]
admin(4095): sys.version     =   2.2.2 (#1, Feb 24
2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)]
admin(4095): sys.executable  =   /usr/bin/python
admin(4095): sys.prefix      =   /usr
admin(4095): sys.exec_prefix =   /usr
admin(4095): sys.path        =   /usr
admin(4095): sys.platform    =   linux2
admin(4095): [----- Environment Variables -----]
admin(4095):    PATH_INFO: /test
admin(4095):    CONTENT_LENGTH: 140
admin(4095):    SERVER_PORT: 443
admin(4095):    HTTP_COOKIE:
admin(4095):    SCRIPT_FILENAME:
admin(4095):    PYTHONPATH: /var/mailman
admin(4095):    SERVER_SOFTWARE: Apache/2.0.51 (Fedora)
admin(4095):    SERVER_ADMIN:
Rechnergruppe at Physik.Uni-Muenchen.DE
admin(4095):    SCRIPT_NAME: /mailman/subscribe
admin(4095):    SCRIPT_URI:
admin(4095):    SERVER_SIGNATURE:
<address>Apache/2.0.51 (Fedora) Server at
lists.physik.uni-muenchen.de Port 443</address>
admin(4095):    REQUEST_METHOD: POST
admin(4095):    HTTP_HOST: lists.physik.uni-muenchen.de
admin(4095):    SCRIPT_URL: /mailman/subscribe/test
admin(4095):    HTTPS: on
admin(4095):    SERVER_PROTOCOL: HTTP/1.1
admin(4095):    QUERY_STRING:
admin(4095):    PATH_TRANSLATED:
admin(4095):    REQUEST_URI: /mailman/subscribe/test
admin(4095):    HTTP_ACCEPT:
admin(4095):    HTTP_ACCEPT_CHARSET:
admin(4095):    HTTP_USER_AGENT: Mozilla/5.0 (X11; U;
Linux i686; en-US; rv:1.7.12) Gecko/20050927
Fedora/1.0.7-1.1.fc3.mll.1 Firefox/1.0.7
admin(4095):    HTTP_CONNECTION: keep-alive
admin(4095):    HTTP_REFERER:
admin(4095):    SERVER_NAME: lists.physik.uni-muenchen.de
admin(4095):    REMOTE_ADDR:
admin(4095):    REMOTE_PORT: 44945
admin(4095):    HTTP_ACCEPT_LANGUAGE:
admin(4095):    UNIQUE_ID: s6td58A2KoEAAHdvB6gAAAAB
admin(4095):    CONTENT_TYPE:
admin(4095):    GATEWAY_INTERFACE: CGI/1.1
admin(4095):    DOCUMENT_ROOT:
admin(4095):    HTTP_ACCEPT_ENCODING: gzip,deflate
admin(4095):    SERVER_ADDR:
admin(4095):    HTTP_KEEP_ALIVE: 300


>Comment By: Klaus Steinberger (kst)
Date: 2006-02-21 22:24

Logged In: YES 

Thanks! That's really fast response. I built a new RPM for 
my system with this patch and it works like a charm. 


Comment By: Mark Sapiro (msapiro)
Date: 2006-02-21 22:04

Logged In: YES 

Revised patch.


Comment By: Mark Sapiro (msapiro)
Date: 2006-02-21 19:17

Logged In: YES 

There are two ways to deal with this bug in your case.

You can avoid it by changing the character set for 'en' in
the language table from 'us-ascii' to 'iso-8859-1'. You
would do this by putting:

add_language('en', 'English (USA)', 'iso-8859-1')

in mm_cfg.py.

Or, you can actually fix it with the attached patch to
Mailman/MailList.py. If possible, try the patch and let us
know how it works for you.


You can respond by visiting: 

More information about the Mailman-coders mailing list