From 2d6c54d6ae0bb8713807d422089521a5fd2525cb Mon Sep 17 00:00:00 2001 From: "sung-su.kim" Date: Tue, 1 Oct 2013 21:11:43 +0900 Subject: [PATCH] Add i18n database attach and detach code [Issue#] N/A [Problem] Installation fail to TCT. [Cause] Fail to database access for IANA locale check. [Solution] Add i18n database attach and detach code. [SCMRequest] N/A Change-Id: I83648a1438e700ff63bba32cde34a8bb28b19d60 --- src/wrt-installer/wrt_installer_api.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wrt-installer/wrt_installer_api.cpp b/src/wrt-installer/wrt_installer_api.cpp index cc2c84a..bbd0c3f 100644 --- a/src/wrt-installer/wrt_installer_api.cpp +++ b/src/wrt-installer/wrt_installer_api.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -105,6 +106,7 @@ void wrt_installer_init(void *userdata, std::string(GlobalConfig::GetVCoreDatabaseFilePath())); InstallerMainThreadSingleton::Instance().AttachDatabases(); + I18n::DB::Interface::attachDatabaseRO(); _D("Prepare libxml2 to work in multithreaded program."); xmlInitParser(); @@ -145,6 +147,7 @@ void wrt_installer_shutdown() TerminateEvent()); InstallerMainThreadSingleton::Instance().DetachDatabases(); + I18n::DB::Interface::detachDatabase(); // This must be done after DetachDatabase ValidationCore::VCoreDeinit(); -- 2.7.4