From 9bbd38b61e0ca40a605468a89f12bf8164c76ff8 Mon Sep 17 00:00:00 2001 From: MyoungJune Park Date: Thu, 11 May 2017 10:52:35 +0900 Subject: [PATCH] add macro for alerternatives to ICU_TIMEZONE_FILES_DIR /opt/share/icu_tzdata is used to store tzdata res for ICU rather than ICU_TIMEZONE_FILES_DIR. Change-Id: I84ee4f67da234b34a4ee808a1161f0ff0120d3c7 Signed-off-by: MyoungJune Park --- source/common/putil.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/common/putil.cpp b/source/common/putil.cpp index 7d0f800..f85a8f7 100644 --- a/source/common/putil.cpp +++ b/source/common/putil.cpp @@ -1336,7 +1336,12 @@ static void U_CALLCONV TimeZoneDataDirInitFn(UErrorCode &status) { status = U_MEMORY_ALLOCATION_ERROR; return; } - const char *dir = getenv("ICU_TIMEZONE_FILES_DIR"); +#ifdef _TIZEN_FEATURE_ + const char *dir = "/opt/share/icu_tzdata"; +#else + const char *dir = getenv("ICU_TIMEZONE_FILES_DIR"); +#endif + #if defined(U_TIMEZONE_FILES_DIR) if (dir == NULL) { dir = TO_STRING(U_TIMEZONE_FILES_DIR); -- 2.7.4