Line 0
Link Here
|
|
|
1 |
--- wavpack.c.orig Thu Apr 6 02:17:41 2006 |
2 |
+++ wavpack.c Mon Apr 17 01:30:57 2006 |
3 |
@@ -1604,6 +1604,7 @@ |
4 |
MultiByteToWideChar (CP_ACP, 0, string, -1, temp, max_chars + 1); |
5 |
WideCharToUTF8 (temp, (uchar *) string, len); |
6 |
#else |
7 |
+ iconv_t converter; |
8 |
char *temp = malloc (len); |
9 |
char *outp = temp; |
10 |
char *inp = string; |
11 |
@@ -1614,7 +1615,7 @@ |
12 |
|
13 |
memset(temp, 0, len); |
14 |
old_locale = setlocale (LC_CTYPE, ""); |
15 |
- iconv_t converter = iconv_open ("UTF-8", ""); |
16 |
+ converter = iconv_open ("UTF-8", ""); |
17 |
err = iconv (converter, &inp, &insize, &outp, &outsize); |
18 |
iconv_close (converter); |
19 |
setlocale (LC_CTYPE, old_locale); |