From 9896b9cfef14befaef878e616f47b29cd6c27915 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Thu, 17 Mar 2011 22:43:22 +0100 Subject: [PATCH] Improve previous fix: don't crash on non-latin1 chars. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- bin/lists.rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 33017d0..0668daa 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -575,7 +575,7 @@ def handle_request(userdesc, perms, mlist, id, value, comment): # Mailman will use internally # LC_DESCRIPTIONS is a dict of lang => (name, charset, direction) tuples. encoding = mm_cfg.LC_DESCRIPTIONS['fr'][1] - comment = comment.encode(encoding) + comment = comment.encode(encoding, 'replace') mlist.HandleRequest(int(id), int(value), comment) return 1 -- 2.1.4