Utf-8

From Eggdrop Wiki

Jump to: navigation, search

UGLY HACK. DO NOT USE.

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

Step 1

Open the file eggdrop1.6.19/src/main.h in an editor of your choice.

Search for (should be 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 file eggdrop1.6.19/src/tcl.c in an editor of your choice.

Search for (should be 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

Retrieved from "http://eggwiki.org/Utf-8"
Personal tools