X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ddc3964ed95d01e72229dc9af968a327cd84e56c..d1ba8203832c54b4a98978c6033296183a24b4d0:/lib/base/estring.cpp diff --git a/lib/base/estring.cpp b/lib/base/estring.cpp index f0107b6a..aee17429 100644 --- a/lib/base/estring.cpp +++ b/lib/base/estring.cpp @@ -3,6 +3,7 @@ #include #include #include +#include static pthread_mutex_t lock=PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP; @@ -181,7 +182,12 @@ static inline unsigned int recode(unsigned char d, int cp) } } -std::string convertDVBUTF8(unsigned char *data, int len, int table) +std::string convertDVBUTF8(const std::string &s, int table) +{ + return convertDVBUTF8((const unsigned char*)s.c_str(), s.size(), table); +} + +std::string convertDVBUTF8(const unsigned char *data, int len, int table) { int i; if (!len)