aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin van Beurden <chadoe@xbmc.org>2012-12-10 19:57:20 +0100
committerMartin van Beurden <chadoe@xbmc.org>2012-12-10 19:58:29 +0100
commita65060772f60f1cef1c1c2196e7fd3bc53c6d019 (patch)
tree31e1dd90ffd19346d06a54adadb2bd3b7757b1ff
parent7f49891d0a13de807e7da80daa2167a77680c5ce (diff)
[WIN32] fixed: resolved special paths used with RunScript were not converted to system encoding, fixes #13651
-rw-r--r--xbmc/interfaces/python/XBPyThread.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/xbmc/interfaces/python/XBPyThread.cpp b/xbmc/interfaces/python/XBPyThread.cpp
index 82ca80f782..68f98912df 100644
--- a/xbmc/interfaces/python/XBPyThread.cpp
+++ b/xbmc/interfaces/python/XBPyThread.cpp
@@ -103,7 +103,11 @@ XBPyThread::~XBPyThread()
void XBPyThread::setSource(const CStdString &src)
{
#ifdef TARGET_WINDOWS
- CStdString strsrc = src;
+ CStdString strsrc;
+ if (m_type == 'F')
+ strsrc = CSpecialProtocol::TranslatePath(src);
+ else
+ strsrc = src;
g_charsetConverter.utf8ToSystem(strsrc);
m_source = new char[strsrc.GetLength()+1];
strcpy(m_source, strsrc);