changeset 247:a1ef3cf974c7 trunk

[svn] - remove convertUTF8toLocale, we obviously don't need it.
author nenolod
date Tue, 14 Nov 2006 13:00:10 -0800
parents 366acb77c853
children 899a5c610a03
files ChangeLog src/wavpack/libwavpack.cxx
diffstat 2 files changed, 8 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- 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 <nenolod@nenolod.net>
+  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 <nenolod@nenolod.net>
   revision [508]
   - remove dead and pointless cdindex code... CDIndex has been nonexistant 
--- 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()
 {