Revert "Fix N_SE-46938 for tz list."
authorHokwon Song <hokwon.song@samsung.com>
Thu, 25 Jul 2013 23:45:05 +0000 (23:45 +0000)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 25 Jul 2013 23:45:05 +0000 (23:45 +0000)
This reverts commit 57061ec171bf9e5c70e3b2e1306cbbaa0ddfce5f

Change-Id: I281cfdeb5cabefa06dee05f24668400be67c3019

src/locales/FLcl_LocaleManagerImpl.cpp

index 00712e4..bcfecbb 100644 (file)
@@ -352,9 +352,6 @@ _LocaleManagerImpl::GetAvailableTimeZonesN(U_ICU_NAMESPACE::StringEnumeration* p
                std::unique_ptr< String > pTimeZone(new (std::nothrow) String(pIcuTZStr));
                SysTryReturn(NID_LCL, pTimeZone, null, E_OUT_OF_MEMORY,
                                        "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
-
-               pTimeZone->Replace(L"_", L" ");
-
                if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())) && pTZMap->ContainsKey(*(pTimeZone.get())))
                {
                        std::unique_ptr< String > pDummyValue(new  (std::nothrow) String());
@@ -619,8 +616,6 @@ _LocaleManagerImpl::GetAvailableTimeZonesFallbackN(void)
                SysTryReturn(NID_LCL, pTimeZone, null, E_OUT_OF_MEMORY,
                                "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
 
-               pTimeZone->Replace(L"_", L" ");
-
                if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())))
                {
                        std::unique_ptr< String > pDummyValue (new  (std::nothrow) String());
@@ -655,6 +650,7 @@ _LocaleManagerImpl::GetAvailableTimeZonesN(void)
                SysLog(NID_LCL,"[E_FILE_NOT_FOUND] It is failed to get the tzlist from the ini file.");
                return GetAvailableTimeZonesFallbackN();
        }
+//     SysTryReturn(NID_LCL, r == E_SUCCESS, null,E_FILE_NOT_FOUND, "[E_FILE_NOT_FOUND] It is failed to get the tzlist from the ini file.");
 
        pTimeZoneMap->Construct();
 
@@ -669,7 +665,6 @@ _LocaleManagerImpl::GetAvailableTimeZonesN(void)
                        break;
                }
                SysTryReturn(NID_LCL, r == E_SUCCESS, null, r, "[%s] It is failed to read the tzlist.", GetErrorMessage(r));
-               pTimeZone->Replace(L"_", L" ");
                pTimeZone->Replace(L"\n", L"\0");
 
                if (!pTimeZoneMap->ContainsKey(*(pTimeZone.get())))