Mercurial > pidgin.yaz
comparison src/protocols/irc/irc.c @ 6062:2cd7c409d71d
[gaim-migrate @ 6512]
Ok, everything looks good to me.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 08 Jul 2003 04:23:24 +0000 |
parents | d8cd876e613e |
children | 16e384bb7fbf |
comparison
equal
deleted
inserted
replaced
6061:c28dea25983c | 6062:2cd7c409d71d |
---|---|
154 char *converted = g_malloc(maxlen + 1); | 154 char *converted = g_malloc(maxlen + 1); |
155 gchar *inptr = (gchar*)string, *outptr = converted; | 155 gchar *inptr = (gchar*)string, *outptr = converted; |
156 int inleft = strlen(string), outleft = maxlen; | 156 int inleft = strlen(string), outleft = maxlen; |
157 GIConv conv; | 157 GIConv conv; |
158 | 158 |
159 /* XXX - I think the below line is leaking */ | |
159 conv = g_iconv_open(gaim_account_get_string(gaim_connection_get_account(gc), "charset", "UTF-8") , "UTF-8"); | 160 conv = g_iconv_open(gaim_account_get_string(gaim_connection_get_account(gc), "charset", "UTF-8") , "UTF-8"); |
160 if (g_iconv(conv, &inptr, &inleft, &outptr, &outleft) == -1) { | 161 if (g_iconv(conv, &inptr, &inleft, &outptr, &outleft) == -1) { |
161 gaim_debug(GAIM_DEBUG_ERROR, "irc", "Charset conversion error\n"); | 162 gaim_debug(GAIM_DEBUG_ERROR, "irc", "Charset conversion error\n"); |
162 gaim_debug(GAIM_DEBUG_ERROR, "irc", | 163 gaim_debug(GAIM_DEBUG_ERROR, "irc", |
163 "Sending as UTF-8 (this is a hack!)\n"); | 164 "Sending as UTF-8 (this is a hack!)\n"); |