summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-Jin Park <sj76.park@samsung.com>2021-05-25 13:30:29 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2023-12-22 08:46:50 +0900
commite8af6d534ec8822b1eb6a41e755590ab2de83d39 (patch)
tree0eafde1ac22913aae59158cd4d12441f5a89b7c1
parent5b3774ace991a396752ff0a846fdfb5c38424551 (diff)
downloadlibxkbcommon-e8af6d534ec8822b1eb6a41e755590ab2de83d39.tar.gz
libxkbcommon-e8af6d534ec8822b1eb6a41e755590ab2de83d39.tar.bz2
libxkbcommon-e8af6d534ec8822b1eb6a41e755590ab2de83d39.zip
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 <sj76.park@samsung.com>
-rw-r--r--src/compose/table.c11
1 files 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;