fix not to display error log about the absense of compose file
authorSung-Jin Park <sj76.park@samsung.com>
Tue, 25 May 2021 04:30:29 +0000 (13:30 +0900)
committerduna.oh <duna.oh@samsung.com>
Mon, 20 Feb 2023 14:05:33 +0000 (23:05 +0900)
All locale information except 'en_US.UTF-8' had been removed as a part of
the uninstallation of unnecessary resources except the essential elements for
basic key-mapping funtionality. As a result, if a locale is set to other than
'en_US.UTF-8', an error  message is being displayed that says a compose file
cannot be found.

Actually, there is no problem with the behavior but it is often perceived by
the developer(s) and tester(s) as an error. Thus, this fixes the search error
for the compose file for another locale other than 'en_US.UTF-8' to not be
displayed anymore.

Change-Id: I37ead508bda79e71baf5d6743f1f6b059b6010a1
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/compose/table.c

index ea5e45a..fa9ab51 100644 (file)
@@ -206,8 +206,14 @@ xkb_compose_table_new_from_locale(struct xkb_context *ctx,
     }
     free(path);
 
-    log_err(ctx, "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
-            locale, table->locale);
+// TIZEN_ONLY(20210525)
+// : fix not to display error log about the absense of compose file
+    if (!strncmp("en_US.UTF-8", locale, 11)) {
+        log_err(ctx, "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
+                locale, table->locale);
+    }
+// END
+
     xkb_compose_table_unref(table);
     return NULL;