#include "textbuffer-reformat.h"
#include <signal.h>
+#include <locale.h>
#ifdef HAVE_STATIC_PERL
void perl_core_init(void);
int main(int argc, char **argv)
{
static struct poptOption options[] = {
+#if 0 /* --dummy is not available in SILC Client */
{ "dummy", 'd', POPT_ARG_NONE, &dummy, 0, "Use the dummy terminal mode", NULL },
+#endif
{ NULL, '\0', 0, NULL }
};
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);