Fix string handling for Turkish locale

This commit is contained in:
Berke Viktor
2012-06-16 13:01:47 +02:00
parent ee7dcc5f22
commit 35821f3875
22 changed files with 135 additions and 135 deletions

View File

@@ -572,7 +572,7 @@ dcc_chat_line (struct DCC *dcc, char *line)
url_check_line (line, len);
if (line[0] == 1 && !strncasecmp (line + 1, "ACTION", 6))
if (line[0] == 1 && !g_ascii_strncasecmp (line + 1, "ACTION", 6))
{
po = strchr (line + 8, '\001');
if (po)
@@ -1940,9 +1940,9 @@ find_dcc (char *nick, char *file, int type)
{
if (!file[0])
return dcc;
if (!strcasecmp (file, file_part (dcc->file)))
if (!g_ascii_strcasecmp (file, file_part (dcc->file)))
return dcc;
if (!strcasecmp (file, dcc->file))
if (!g_ascii_strcasecmp (file, dcc->file))
return dcc;
}
}
@@ -2406,7 +2406,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
DCC_SIZE size;
int psend = 0;
if (!strcasecmp (type, "CHAT"))
if (!g_ascii_strcasecmp (type, "CHAT"))
{
port = atoi (word[8]);
addr = strtoul (word[7], NULL, 10);
@@ -2453,7 +2453,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
return;
}
if (!strcasecmp (type, "Resume"))
if (!g_ascii_strcasecmp (type, "Resume"))
{
port = atoi (word[7]);
@@ -2497,7 +2497,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
}
return;
}
if (!strcasecmp (type, "Accept"))
if (!g_ascii_strcasecmp (type, "Accept"))
{
port = atoi (word[7]);
dcc = find_dcc_from_port (port, TYPE_RECV);
@@ -2507,7 +2507,7 @@ handle_dcc (struct session *sess, char *nick, char *word[],
}
return;
}
if (!strcasecmp (type, "SEND"))
if (!g_ascii_strcasecmp (type, "SEND"))
{
char *file = file_part (word[6]);