Removed CP1255-specific handling of server lines.

GLib's API is good enough now.
This commit is contained in:
Arnavion
2015-01-18 02:10:03 -08:00
parent ee17ec6b4f
commit 2e76a4e477
3 changed files with 2 additions and 14 deletions

View File

@@ -514,8 +514,6 @@ dcc_chat_line (struct DCC *dcc, char *line)
message_tags_data no_tags = MESSAGE_TAGS_DATA_INIT;
len = strlen (line);
if (dcc->serv->using_cp1255)
len++; /* include the NUL terminator */
if (dcc->serv->encoding == NULL) /* system */
utf = g_locale_to_utf8 (line, len, NULL, &utf_len, NULL);
@@ -528,9 +526,6 @@ dcc_chat_line (struct DCC *dcc, char *line)
len = utf_len;
}
if (dcc->serv->using_cp1255 && len > 0)
len--;
/* we really need valid UTF-8 now */
conv = text_validate (&line, &len);