List preferred_language config.

Bug #266021 reported by Dcmwai
2
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/scripts/driver", line 87, in run_main
    main()
  File "/var/mailman/Mailman/Cgi/admin.py", line 192,
in main
    show_results(mlist, doc, category, subcat, cgidata)
  File "/var/mailman/Mailman/Cgi/admin.py", line 515,
in show_results
    form.AddItem(show_variables(mlist, category,
subcat, cgidata, doc))
  File "/var/mailman/Mailman/Cgi/admin.py", line 564,
in show_variables
    add_options_table_item(mlist, category, subcat,
table, item)
  File "/var/mailman/Mailman/Cgi/admin.py", line 579,
in add_options_table_item
    val = get_item_gui_value(mlist, category, kind,
varname, params, extra)
  File "/var/mailman/Mailman/Cgi/admin.py", line 615,
in get_item_gui_value
    value = gui.getValue(mlist, kind, varname, params)
  File "/var/mailman/Mailman/Gui/General.py", line 446,
in getValue
    return Utils.uncanonstr(mlist.subject_prefix,
mlist.preferred_language)
  File "/var/mailman/Mailman/Utils.py", line 761, in
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 "../../bin/config_list", line 339, in ?
    main()
  File "../../bin/config_list", line 332, in main
    do_output(listname, outfile)
  File "../../bin/config_list", line 117, in do_output
    do_list_categories(mlist, k, None, outfp)
  File "../../bin/config_list", line 166, in
do_list_categories
    value = gui.getValue(mlist, vtype, varname, data[2])
  File "/var/mailman/Mailman/Gui/General.py", line 446,
in getValue
    return Utils.uncanonstr(mlist.subject_prefix,
mlist.preferred_language)
  File "/var/mailman/Mailman/Utils.py", line 761, in
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://sourceforge.net/tracker/index.php?func=detail&aid=887806&group_id=103&atid=100103]

Revision history for this message
Barry Warsaw (barry) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.