Mercurial > pidgin
diff src/util.c @ 3642:5e50f6746509
[gaim-migrate @ 3766]
(10:16:03) deryni: we're fully 'compliant'? (sorry if that betrays some underlying stupidity)
(10:16:55) Paco-Paco: yes
(10:17:24) Paco-Paco: provided the user has the font, on any of the services supporting unicode we should support every known language in the world :-)
(10:17:36) Paco-Paco: well, as soon as we have a proper utf-8 input widget
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Fri, 11 Oct 2002 14:19:24 +0000 |
parents | 9682c0e022c6 |
children | f09193608fd3 |
line wrap: on
line diff
--- a/src/util.c Fri Oct 11 12:24:25 2002 +0000 +++ b/src/util.c Fri Oct 11 14:19:24 2002 +0000 @@ -1173,51 +1173,6 @@ fclose(fd); } -char *convert_string(char *str, const char *destset, const char *srcset) -{ -#ifdef HAVE_ICONV - char *buf; - iconv_t cd; - size_t insize = 0; - size_t outsize = 0; - size_t nconv = 0; - char *inptr; - char *outptr; - char *ret; - - if (!str) - return NULL; - buf = g_malloc(strlen(str)*4); - insize = strlen(str); - inptr = str; - outsize = strlen(str)*4; - outptr = buf; - - cd = iconv_open(destset, srcset); - if (cd == (iconv_t) -1) { - g_free(buf); - debug_printf("iconv_open(%s, %s) Error\n",destset, srcset); - return g_strdup(str); - } - - nconv = iconv(cd, &inptr, &insize, &outptr, &outsize); - if (nconv == (size_t) -1) { - debug_printf("iconv Error\n"); - g_free(buf); - return g_strdup(str); - } - *outptr = '\0'; - iconv_close(cd); - - ret = g_strdup(buf); - g_free(buf); - - return ret; -#else - return g_strdup(str); -#endif -} - void strip_linefeed(gchar *text) { int i, j;