Bugs/Utf-8

From Eggdrop Wiki

(Difference between revisions)
Jump to: navigation, search
(initial version)
Line 4: Line 4:
{{Changefile|file=eggdrop{{LSR/Eggdrop}}/src/main.h|line=46|text=
{{Changefile|file=eggdrop{{LSR/Eggdrop}}/src/main.h|line=46|text=
-
#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) || (TCL_MAJOR_VERSION > 8))
+
#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) {{!}}{{!}} (TCL_MAJOR_VERSION > 8))
#  define USE_TCL_BYTE_ARRAYS
#  define USE_TCL_BYTE_ARRAYS
#  define USE_TCL_ENCODING
#  define USE_TCL_ENCODING
#endif
#endif
|newtext=
|newtext=
-
#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) || (TCL_MAJOR_VERSION > 8))
+
#if (((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 1)) {{!}}{{!}} (TCL_MAJOR_VERSION > 8))
#  undef USE_TCL_BYTE_ARRAYS
#  undef USE_TCL_BYTE_ARRAYS
#  define USE_TCL_ENCODING
#  define USE_TCL_ENCODING

Revision as of 05:06, 6 January 2010

UGLY HACK. DO NOT USE.

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

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


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";
Personal tools