Test idea that Qt classes internally use ICU.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-11-29 08:49:32 +02:00
parent 1d28dd5be9
commit df79ea7395

View File

@ -354,8 +354,9 @@ void VAbstractApplication::SetICUData(int &argc, char **argv)
* This prevents the library from using shared in memory data. There are few ways to resolve this issue. According * This prevents the library from using shared in memory data. There are few ways to resolve this issue. According
* to documentation we can either use ICU_DATA environment variable or the function u_setDataDirectory(). * to documentation we can either use ICU_DATA environment variable or the function u_setDataDirectory().
*/ */
const QString appDirPath = QFileInfo(ApplicationFilePath(argc, argv)).path(); // const QString appDirPath = QFileInfo(ApplicationFilePath(argc, argv)).path();
u_setDataDirectory(QString(appDirPath + QStringLiteral("/../share/icu")).toUtf8().constData()); // u_setDataDirectory(QString(appDirPath + QStringLiteral("/../share/icu")).toUtf8().constData());
u_setDataDirectory("/home/dismine");
} }
#endif // defined(Q_OS_LINUX) #endif // defined(Q_OS_LINUX)