#include "textbuffer-reformat.h"
#include <signal.h>
+#include <locale.h>
#ifdef HAVE_STATIC_PERL
void perl_core_init(void);
core_init();
silc_init();
fe_common_core_init();
- fe_common_silc_init();
+ fe_silc_init();
theme_register(gui_text_formats);
signal_add_last("gui exit", (SIGNAL_FUNC) sig_exit);
theme_unregister();
- fe_common_silc_deinit();
+ fe_silc_deinit();
fe_common_core_deinit();
silc_deinit();
core_deinit();
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);