From badd1484469ab6280de977eb179db00820868c03 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 13 Jul 2010 00:22:53 +0100 Subject: Reformat nicks whenever fullname/nick/group changes (but at least for now still only for offline users). --- unix.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'unix.c') diff --git a/unix.c b/unix.c index f559705e..a9045c44 100644 --- a/unix.c +++ b/unix.c @@ -38,6 +38,7 @@ #include #include #include +#include global_t global; /* Against global namespace pollution */ @@ -51,6 +52,10 @@ int main( int argc, char *argv[] ) char *old_cwd = NULL; struct sigaction sig, old; + /* Required to make iconv to ASCII//TRANSLIT work. This makes BitlBee + system-locale-sensitive. :-( */ + setlocale( LC_CTYPE, "" ); + if( argc > 1 && strcmp( argv[1], "-x" ) == 0 ) return crypt_main( argc, argv ); -- cgit v1.2.3