[Mailman-i18n] "Funny" characters in real names?
Tokio Kikuchi
tkikuchi@is.kochi-u.ac.jp
Wed, 18 Sep 2002 22:27:54 +0900
>
> I think I've tracked one. Here is a patch.
tracked two :-) patch merged.
--- /home/mailman/src/mailman/Mailman/Cgi/confirm.py Wed Sep 18 08:47:39 2002
+++ Cgi/confirm.py Wed Sep 18 22:17:49 2002
@@ -200,6 +200,7 @@
password = userdesc.password
digest = userdesc.digest
lang = userdesc.language
+ name = Utils.uncanonstr(name, lang)
title = _('Confirm subscription request')
doc.SetTitle(title)
i18n.set_language(lang)
@@ -314,6 +315,7 @@
overrides = UserDesc(fullname=cgidata.getvalue('realname', None),
digest=digest, lang=lang)
userdesc += overrides
+ userdesc.fullname = Utils.canonstr(userdesc.fullname, userdesc.language)
op, addr, pw, digest, lang = mlist.ProcessConfirmation(
cookie, userdesc)
except Errors.MMNeedApproval:
traceback for the second
admin(79816): [----- Mailman Version: 2.1b3+ -----]
admin(79816): [----- Traceback ------]
admin(79816): Traceback (most recent call last):
admin(79816): File "/home/mailman3/scripts/driver", line 82, in run_main
admin(79816): main()
admin(79816): File "/home/mailman3/Mailman/Cgi/options.py", line 598, in main
admin(79816): options_page(mlist, doc, user, cpuser, userlang)
admin(79816): File "/home/mailman3/Mailman/Cgi/options.py", line 616, in optio
ns_page
admin(79816): fullname = Utils.uncanonstr(mlist.getMemberName(user), userlan
g)
admin(79816): File "/home/mailman3/Mailman/Utils.py", line 755, in uncanonstr
admin(79816): return s.encode(charset, 'strict')
admin(79816): TypeError: _japanese_codecs_euc_jp_encode() argument 1 must be uni
code, not string
Good Night!
--
Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
http://weather.is.kochi-u.ac.jp/