aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-07-13 00:22:53 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-07-13 00:22:53 +0100
commitbadd1484469ab6280de977eb179db00820868c03 (patch)
tree6887227b5b1a273674b421cc61261aeddfbe68cc /unix.c
parent09dfb686be1297e9ff0a9b434ef865b779a60bc3 (diff)
Reformat nicks whenever fullname/nick/group changes (but at least for now
still only for offline users).
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/unix.c b/unix.c
index f559705e..a9045c44 100644
--- a/unix.c
+++ b/unix.c
@@ -38,6 +38,7 @@
#include <sys/time.h>
#include <sys/wait.h>
#include <pwd.h>
+#include <locale.h>
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 );