summaryrefslogtreecommitdiff
path: root/vchat-protocol.c
diff options
context:
space:
mode:
authorerdgeist <>2010-08-27 13:27:18 +0000
committererdgeist <>2010-08-27 13:27:18 +0000
commita2e3e32235f40f135e34906db887428a3dc52e5a (patch)
tree73ead3a300a8c0a6d99d8fdc040dd1e845d7a9cd /vchat-protocol.c
parentf2ac28407ad81b805dada001b862b2fe130c9dcc (diff)
Make locale options non-optional. Everyone's expected to have locale.h nowadays.
Diffstat (limited to 'vchat-protocol.c')
-rwxr-xr-xvchat-protocol.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/vchat-protocol.c b/vchat-protocol.c
index ef035fe..1a29b07 100755
--- a/vchat-protocol.c
+++ b/vchat-protocol.c
@@ -26,10 +26,8 @@
26#include <readline/readline.h> 26#include <readline/readline.h>
27#include <openssl/ssl.h> 27#include <openssl/ssl.h>
28#include <openssl/err.h> 28#include <openssl/err.h>
29#ifndef NO_LOCALE
30#include <locale.h> 29#include <locale.h>
31#include <langinfo.h> 30#include <langinfo.h>
32#endif
33 31
34/* local includes */ 32/* local includes */
35#include "vchat.h" 33#include "vchat.h"
@@ -243,11 +241,9 @@ pubthoughts (char *message)
243static void 241static void
244serverlogin (char *message) 242serverlogin (char *message)
245{ 243{
246#ifndef NO_LOCALE
247 int utf8=!strcmp(nl_langinfo(CODESET), "UTF-8"); 244 int utf8=!strcmp(nl_langinfo(CODESET), "UTF-8");
248 if (utf8) 245 if (utf8)
249 networkoutput(".e utf8"); 246 networkoutput(".e utf8");
250#endif
251} 247}
252 248
253/* parse and handle an idle message 249/* parse and handle an idle message