2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

moved from utf8 to QFile::encode/decodeName

This commit is contained in:
John Preston
2016-02-09 17:42:36 +03:00
parent 839078d32f
commit 001f2e1fe7
5 changed files with 30 additions and 32 deletions

View File

@@ -149,7 +149,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
, _updateChecker(0)
#endif
{
QByteArray d(QDir(cWorkingDir()).absolutePath().toUtf8());
QByteArray d(QFile::encodeName(QDir(cWorkingDir()).absolutePath()));
char h[33] = { 0 };
hashMd5Hex(d.constData(), d.size(), h);
_localServerName = psServerPrefix() + h + '-' + cGUIDStr();