From 7fcc81512269563d3e34dd364b9b9a5f562c9720 Mon Sep 17 00:00:00 2001 From: Sung-Jin Park Date: Tue, 25 May 2021 13:30:29 +0900 Subject: [PATCH] fix not to display error log about the absense of compose file 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 --- src/compose/table.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/compose/table.c b/src/compose/table.c index 8a8d11f..49a0a8e 100644 --- a/src/compose/table.c +++ b/src/compose/table.c @@ -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; -- 2.7.4