Workaround fix for datetime picker
authorKwangYong Choi <ky0.choi@samsung.com>
Wed, 11 Sep 2013 07:51:35 +0000 (16:51 +0900)
committerKwangYong Choi <ky0.choi@samsung.com>
Wed, 11 Sep 2013 07:55:41 +0000 (16:55 +0900)
[Title] Workaround fix for datetime picker.
[Issue#] N/A
[Problem] Region format sometimes returns "utf-8". It's not handled by elm datetime.
[Cause] Only support "UTF-8".
[Solution] Workaround fix for change region format from "utf-8" to "UTF-8" guided by Sungho Kwak.

Change-Id: I443dd57d8162a5067b05c1bd8db0be3021667cb9

Source/WebKit2/UIProcess/API/efl/tizen/InputPicker.cpp

index 8d2e307..bccb9a4 100755 (executable)
@@ -106,6 +106,13 @@ static char* datetimeFormat()
     if (!regionFormat)
         return 0;
 
+    // FIXME: Workaround fix for region format.
+    if (!strncmp("utf-8", regionFormat, 5)) {
+        TIZEN_LOGI("region format is utf-8");
+        free(regionFormat);
+        regionFormat = strdup("UTF-8");
+    }
+
     returnValue = vconf_get_int(VCONFKEY_REGIONFORMAT_TIME1224, &timeValue);
     if (returnValue < 0)
         isHour24 = 0;