5 Dec 2004 10:53
supporting foreign characters in server messages
Damien Elmes <erc-help <at> repose.cx>
2004-12-05 09:53:40 GMT
2004-12-05 09:53:40 GMT
Hi folks,
I jumped on a network the other day which doesn't use any English, and
their server messages (such as MOTD and LIST messages) are sent using
a 7bit character encoding (iso-2022-jp). You can test it if you want
want by going to irc.2ch.net.
Unfortunately it seems like ERC can't cope with foreign characters in
the server messages yet - at least not on my setup. I hacked up a
quick patch to fix the problem for me, and thought someone might be
interested. It's probably not suitable for inclusion in ERC yet, but I
wanted to know if anyone has thought of a better way to support
foreign characters in this context. Note that I changed the TOPIC
handler since I thought a more generalised solution would be better -
which means that after the patch is applied /topic messages won't be
customisable on a per-channel basis, until
erc-decode-server-message-string is improved.
Any thoughts?
Damien
--- erc-backend.el 10 Nov 2004 17:01:42 +0900 1.15
+++ erc-backend.el 05 Dec 2004 18:39:31 +0900
<at> <at> -110,6 +110,19 <at> <at>
(command-args '() :type list)
(contents "" :type string))
+(defvar erc-delayed-decoding-responses '("PRIVMSG" "NOTICE")
+ "A list of responses which handle character decoding by themselves")
(Continue reading)


RSS Feed