diff options
author | ulion <ulion2002@gmail.com> | 2013-03-12 06:40:54 +0800 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2013-03-12 10:15:59 -0400 |
commit | 36a6cb878dccf537cdf9504d50580e29978f2c88 (patch) | |
tree | c1282dbda287c7cca3e8ae2757d97f747212a523 | |
parent | b11f5b4e28cfbee21050471ec9539437d119b9cb (diff) |
Fix code generate problem with binary string.
-rw-r--r-- | xbmc/interfaces/python/typemaps/python.string.outtm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/interfaces/python/typemaps/python.string.outtm b/xbmc/interfaces/python/typemaps/python.string.outtm index 1751f7078f..6fced901e7 100644 --- a/xbmc/interfaces/python/typemaps/python.string.outtm +++ b/xbmc/interfaces/python/typemaps/python.string.outtm @@ -22,4 +22,4 @@ %> ${result} = <% if(method.@feature_python_coerceToUnicode) { %>PyUnicode_DecodeUTF8(${api}.c_str(),${api}.size(),"replace");<% } - else { %>PyString_FromString(${api}.c_str());<% } %> + else { %>PyString_FromStringAndSize(${api}.c_str(), ${api}.length());<% } %> |