interesting topic. I tested this patch and I could bind on utf-8 commands and join utf-8 channels (didn't have much time to test further).
BE AWARE: This patch FORCES UTF-8 support, so only apply it if your system supports it :) [This patch overrides eggdrops own mechanism to detect the encoding system it should use based on variables (LC_ALL,...). So this is totally a HACK and nothing to put into production code for compatibility reasons]
Code: Select all
--- eggdrop1.6.18.original/src/main.h 2006-03-28 04:35:50.000000000 +0200
+++ eggdrop1.6.18.utf8/src/main.h 2008-04-01 20:57:29.000000000 +0200
@@ -44,7 +44,7 @@
#endif
#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) || (TCL_MAJOR_VERSION > 8))
-# define USE_TCL_BYTE_ARRAYS
+# undef USE_TCL_BYTE_ARRAYS
# define USE_TCL_ENCODING
#endif
diff -ur eggdrop1.6.18.original/src/tcl.c eggdrop1.6.18.utf8/src/tcl.c
--- eggdrop1.6.18.original/src/tcl.c 2006-03-28 04:35:50.000000000 +0200
+++ eggdrop1.6.18.utf8/src/tcl.c 2008-04-01 20:55:48.000000000 +0200
@@ -650,7 +650,7 @@
if (encoding == NULL) {
encoding = "iso8859-1";
}
-
+ encoding = "utf-8";
Tcl_SetSystemEncoding(NULL, encoding);