Index: xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp =================================================================== --- xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp (revision 30638) +++ xbmc/lib/libPython/xbmcmodule/xbmcmodule.cpp (working copy) @@ -653,9 +653,8 @@ CStdString strText; if (!PyXBMCGetUnicodeString(strText, pObjectText, 1)) return NULL; - - CStdString strFilename; - strFilename = CUtil::MakeLegalPath(strText, LEGAL_FATX); + int iLegal = bIsFatX != 0 ? LEGAL_FATX : LEGAL_WIN32_COMPAT; + CStdString strFilename = CUtil::MakeLegalPath(strText, iLegal); return Py_BuildValue((char*)"s", strFilename.c_str()); }