Commit 1915632e068f04cbc6a88aa53e846a9e3a1322ab

Ran Benita 2021-05-08T21:08:37

compose: add mapped locale to Compose-file-not-found error log Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/compose/table.c b/src/compose/table.c
index 1691555..8a8d11f 100644
--- a/src/compose/table.c
+++ b/src/compose/table.c
@@ -206,7 +206,8 @@ xkb_compose_table_new_from_locale(struct xkb_context *ctx,
     }
     free(path);
 
-    log_err(ctx, "couldn't find a Compose file for locale \"%s\"\n", locale);
+    log_err(ctx, "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
+            locale, table->locale);
     xkb_compose_table_unref(table);
     return NULL;