patch-xbmc_utils_CharsetConverter_cpp 929 B

1234567891011121314151617181920
  1. --- xbmc-12.2.orig/xbmc/utils/CharsetConverter.cpp 2013-05-03 07:57:41.000000000 +0200
  2. +++ xbmc-12.2/xbmc/utils/CharsetConverter.cpp 2013-11-05 14:10:44.000000000 +0100
  3. @@ -140,7 +140,7 @@ static struct SCharsetMapping
  4. #define ICONV_PREPARE(iconv) iconv=(iconv_t)-1
  5. #define ICONV_SAFE_CLOSE(iconv) if (iconv!=(iconv_t)-1) { iconv_close(iconv); iconv=(iconv_t)-1; }
  6. -size_t iconv_const (void* cd, const char** inbuf, size_t *inbytesleft,
  7. +size_t iconv_const (iconv_t cd, const char** inbuf, size_t *inbytesleft,
  8. char* * outbuf, size_t *outbytesleft)
  9. {
  10. struct iconv_param_adapter {
  11. @@ -157,7 +157,7 @@ size_t iconv_const (void* cd, const char
  12. const char** p;
  13. };
  14. - return iconv((iconv_t)cd, iconv_param_adapter(inbuf), inbytesleft, outbuf, outbytesleft);
  15. + return iconv(cd, iconv_param_adapter(inbuf), inbytesleft, outbuf, outbytesleft);
  16. }
  17. template<class INPUT,class OUTPUT>