From e8af6d534ec8822b1eb6a41e755590ab2de83d39 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/compose/table.c b/src/compose/table.c index 04fa8cb..fc81963 100644 --- a/src/compose/table.c +++ b/src/compose/table.c @@ -207,9 +207,14 @@ xkb_compose_table_new_from_locale(struct xkb_context *ctx, } free(path); - log_err(ctx, XKB_LOG_MESSAGE_NO_ID, - "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