Bugs/Utf-8

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
m (wikilink)
Line 1: Line 1:
-
'''UGLY HACK. DO NOT USE.'''
+
'''This fixes some issues, not all. Use with care.'''
You know what you're doing? Ok, well, here it is.
You know what you're doing? Ok, well, here it is.
Line 24: Line 24:
===Step 3===
===Step 3===
go get some runts and [[How to compile Eggdrop|compile]]
go get some runts and [[How to compile Eggdrop|compile]]
 +
 +
 +
Be aware that this doesn't allow eggdrop to join (and stay in!) utf-8 channels, see
 +
[http://forum.egghelp.org/viewtopic.php?p=93395#93395]

Revision as of 17:25, 16 July 2010

This fixes some issues, not all. Use with care.

You know what you're doing? Ok, well, here it is.

Step 1

Open the eggdrop1.6.21/src/main.h file in your editor.

Search for (around line 46)

#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) || (TCL_MAJOR_VERSION > 8))
#  define USE_TCL_BYTE_ARRAYS
#  define USE_TCL_ENCODING
#endif

and replace it with

#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) || (TCL_MAJOR_VERSION > 8))
#  undef USE_TCL_BYTE_ARRAYS
#  define USE_TCL_ENCODING
#endif

Step 2

Open the eggdrop1.6.21/src/tcl.c file in your editor.

Search for (around line 650)

if (encoding == NULL) {
  encoding = "iso8859-1";
}

and insert the following right after it

encoding = "utf-8";

Step 3

go get some runts and compile


Be aware that this doesn't allow eggdrop to join (and stay in!) utf-8 channels, see [1]

Personal tools