summaryrefslogtreecommitdiff
path: root/audio/libtunepimp/files/patch-lib-utf8-utf8util.cpp
blob: ac25f4e75fafea8c89dcd66904433ace1d5e9da4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- lib/utf8/utf8util.cpp.orig	2006-11-18 12:52:26.000000000 +0200
+++ lib/utf8/utf8util.cpp	2010-06-07 10:39:57.243921985 +0300
@@ -26,6 +26,7 @@
 ----------------------------------------------------------------------------*/
 
 #include <stdio.h>
+#include <stdlib.h>
 #include "utf8util.h"
 #include "utf8.h"
 #ifdef WIN32
@@ -38,7 +39,7 @@ string utf8Encode(const string &from)
     char *dest;
     string to;
 
-    to.clear();
+    to = "";
     ret = utf8_encode(from.c_str(), &dest);
     if (ret >= 0)
     {
@@ -54,7 +55,7 @@ string utf8Decode(const string &from)
     char *dest;
     string to;
 
-    to.clear();
+    to = "";
     ret = utf8_decode(from.c_str(), &dest);
     if (ret >= 0)
     {