logic: use wstring in symbol and bookmark names

* use wstring in symbol and bookmark names
* fixed setting apppath in windows includes
* regard utf8 encoding in shared indexer commands
* regard utf8 encoding in shared indexer status
This commit is contained in:
mlangkabel
2018-02-05 17:17:33 +01:00
parent c99e79364f
commit 9e041c1f0a
155 changed files with 1955 additions and 1864 deletions
@@ -24,18 +24,18 @@ void setupApp(int argc, char *argv[])
WCHAR path[MAX_PATH];
GetModuleFileNameW(hModule, path, MAX_PATH);
const std::wstring wPath(path);
std::string appPath = std::string(wPath.begin(), wPath.end());
std::wstring appPath(path);
size_t pos = appPath.find_last_of("/");
if (pos == std::string::npos)
size_t pos = appPath.find_last_of(L"/");
if (pos == std::wstring::npos)
{
pos = appPath.find_last_of("\\");
pos = appPath.find_last_of(L"\\");
}
if (pos != std::string::npos)
if (pos != std::wstring::npos)
{
appPath = appPath.substr(0, pos + 1);
}
AppPath::setAppPath(FilePath(appPath));
}
{