issue #0002973: Path to FreeCAD.app can't contain unicode

This commit is contained in:
wmayer
2017-12-02 19:37:05 +01:00
parent 93aa859944
commit 1cfae464b4
3 changed files with 4 additions and 3 deletions

View File

@@ -2473,7 +2473,8 @@ std::string Application::FindHomePath(const char* sCall)
#else
QString str = QString::fromStdWString(homePath);
#endif
return str.toStdString();
// convert to utf-8
return str.toUtf8().data();
}
#else

View File

@@ -140,7 +140,7 @@ def InitApplications():
Log(traceback.format_exc())
Log('-'*100+'\n')
Err('During initialization the error ' + str(inst) + ' occurred in ' + InstallFile + '\n')
Err('Please look into the log file for further information')
Err('Please look into the log file for further information\n')
else:
Log('Init: Initializing ' + Dir + '... done\n')
else:

View File

@@ -124,7 +124,7 @@ def InitApplications():
Log(traceback.format_exc())
Log('-'*100+'\n')
Err('During initialization the error ' + str(inst) + ' occurred in ' + InstallFile + '\n')
Err('Please look into the log file for further information')
Err('Please look into the log file for further information\n')
else:
Log('Init: Initializing ' + Dir + '... done\n')
else: