diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-13 00:22:53 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-07-13 00:22:53 +0100 |
commit | badd1484469ab6280de977eb179db00820868c03 (patch) | |
tree | 6887227b5b1a273674b421cc61261aeddfbe68cc /unix.c | |
parent | 09dfb686be1297e9ff0a9b434ef865b779a60bc3 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 ); |