From 5749c53484369515c4e6df4a4730b1f34fab82b4 Mon Sep 17 00:00:00 2001 From: Arnavion Date: Sun, 18 Jan 2015 02:10:04 -0800 Subject: Server line text-encoding-related fixes. - Handle server lines that contain sequences which are invalid in the server encoding. Previously, these would cause the whole line to be interpreted in ISO-8859-1, but now they're simply replaced with an appropriate replacement character. - Removed prefs.utf8_locale. - Change default server encoding from system locale to UTF-8. - Always populate server->encoding with a non-null value - UTF-8. Fixes #1198 --- src/common/hexchat.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/common/hexchat.c') diff --git a/src/common/hexchat.c b/src/common/hexchat.c index 7d8e462f..1428039a 100644 --- a/src/common/hexchat.c +++ b/src/common/hexchat.c @@ -757,7 +757,6 @@ static void xchat_init (void) { char buf[3068]; - const char *cs = NULL; #ifdef WIN32 WSADATA wsadata; @@ -795,9 +794,6 @@ xchat_init (void) #endif #endif - if (g_get_charset (&cs)) - prefs.utf8_locale = TRUE; - load_text_events (); sound_load (); notify_load (); -- cgit 1.4.1