* Merged with Irssi 0.8.6.
+ * Fixed UTF-8 in Irssi SILC Client, setlocale was missing.
+ Affected file irssi/src/fe-text/silc.c.
+
Mon Nov 25 18:21:43 EET 2002 Pekka Riikonen <priikone@silcnet.org>
* The silc_argument_get_[first/next] now return the argument
#include "textbuffer-reformat.h"
#include <signal.h>
+#include <locale.h>
#ifdef HAVE_STATIC_PERL
void perl_core_init(void);
textdomain(PACKAGE);
#endif
+ /* setlocale() must be called at the beginning before any callsthat
+ affect it, especially regexps seem to break if they'regenerated
+ before t his call.
+
+ locales aren't actually used for anything else thanautodetection
+ of UTF-8 currently.. */
+ setlocale(LC_CTYPE, "");
+
textui_init();
args_register(options);
args_execute(argc, argv);