List preferred_language config.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GNU Mailman |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I'm using MM 2.1.1 with Redhat 9.0 (rpm packages).
When I see MM can use big5 I'm teting it with fun and
it give me an problem that I never think of.
In state changing the whole/system wide to big5, I've
choose to change the preferred_language in one of my
list (dailycquote) to be big5. This cause a big problem
I can never get into the admin page anymore. not even
bin/config_list -o .
This is the error message
Traceback:
Traceback (most recent call last):
File "/var/mailman/
main()
File "/var/mailman/
in main
show_
File "/var/mailman/
in show_results
form.
subcat, cgidata, doc))
File "/var/mailman/
in show_variables
add_
table, item)
File "/var/mailman/
in add_options_
val = get_item_
varname, params, extra)
File "/var/mailman/
in get_item_gui_value
value = gui.getValue(mlist, kind, varname, params)
File "/var/mailman/
in getValue
return Utils.uncanonst
mlist.preferred
File "/var/mailman/
uncanonstr
return s.encode(charset)
LookupError: unknown encoding: big5
(when accessing the admin page, after keyin password)
This is the error from CLI when using config_list.
Traceback (most recent call last):
File "../../
main()
File "../../
do_
File "../../
do_
File "../../
do_list_categories
value = gui.getValue(mlist, vtype, varname, data[2])
File "/var/mailman/
in getValue
return Utils.uncanonst
mlist.preferred
File "/var/mailman/
uncanonstr
return s.encode(charset)
LookupError: unknown encoding: big5
As you can see it is all about the unknow big5.
something I wounder, why would config_list bouther if
it is big5...
Please help
I've think about a solution that is to edit the Db of
the mailling list, however, I've never success.
[http://
Part of your problem is that Python does not come with Asian
encodings out of the box. You will have to add Chinese
codecs to get anywhere at all. CJKCodecs are probably your
best bet:
http:// cjkpython. i18n.org
However, once you get that installed, you may still have
problems. The Chinese translations are very much out of
date and need a champion to help work at updating them. If
you're interested in helping, please contact
<email address hidden>.
In the meantime, I'm going to close this issue.