diff options
author | Sung-Jin Park <sj76.park@samsung.com> | 2021-05-25 13:30:29 +0900 |
---|---|---|
committer | Duna Oh <duna.oh@samsung.com> | 2022-02-07 14:52:58 +0900 |
commit | 7fcc81512269563d3e34dd364b9b9a5f562c9720 (patch) | |
tree | 481e8665cfbd466112e480609923e3e30a8df3e2 | |
parent | 60562e281e3f5d422b0e9692a55563b7424138ca (diff) | |
download | libxkbcommon-7fcc81512269563d3e34dd364b9b9a5f562c9720.tar.gz libxkbcommon-7fcc81512269563d3e34dd364b9b9a5f562c9720.tar.bz2 libxkbcommon-7fcc81512269563d3e34dd364b9b9a5f562c9720.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.c | 10 |
1 files 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; |