# HG changeset patch # User nenolod # Date 1163538010 28800 # Node ID a1ef3cf974c77e58c75a72c3c48ad8ab97103269 # Parent 366acb77c853d2d5be037aa320f907655f85c2f0 [svn] - remove convertUTF8toLocale, we obviously don't need it. diff -r 366acb77c853 -r a1ef3cf974c7 ChangeLog --- a/ChangeLog Tue Nov 14 12:58:51 2006 -0800 +++ b/ChangeLog Tue Nov 14 13:00:10 2006 -0800 @@ -1,3 +1,11 @@ +2006-11-14 20:58:51 +0000 William Pitcock + revision [510] + - i rewrote most of this! + + trunk/src/wavpack/ui.cxx | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + + 2006-11-14 20:03:25 +0000 William Pitcock revision [508] - remove dead and pointless cdindex code... CDIndex has been nonexistant diff -r 366acb77c853 -r a1ef3cf974c7 src/wavpack/libwavpack.cxx --- a/src/wavpack/libwavpack.cxx Tue Nov 14 12:58:51 2006 -0800 +++ b/src/wavpack/libwavpack.cxx Tue Nov 14 13:00:10 2006 -0800 @@ -276,30 +276,6 @@ WavpackGetTagItem(ctx, "Year", tag->year, sizeof(tag->year)); } -static char * -convertUTF8toLocale(char *utf8) -{ - // note - opens a new iconv descriptor for each call - // will have to find a way to reuse the descriptor if this turns - // out to be too slow - iconv_t idesc = iconv_open("", "UTF-8"); - if (idesc == (iconv_t) -1) { - perror("iconv_open failed"); - return g_strdup(utf8); - } - - size_t in_left = strlen(utf8); - size_t out_left = 2 * in_left + 1; - char *buf = (char *)g_malloc(out_left); - char *in = utf8; - char *out = buf; - - memset(buf, 0, out_left); - size_t err = iconv(idesc, &in, &in_left, &out, &out_left); - iconv_close(idesc); - return buf; -} - static void * end_thread() {