Skip to content

Commit 2c10e50

Browse files
committed
tools: Fix compile-keymap default KcCGST values
Values may be read from the environment.
1 parent 350931a commit 2c10e50

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/compile-keymap.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,14 @@ print_rmlvo(struct xkb_context *ctx, const struct xkb_rule_names *rmlvo)
270270
}
271271

272272
static int
273-
print_kccgst(struct xkb_context *ctx, const struct xkb_rule_names *rmlvo)
273+
print_kccgst(struct xkb_context *ctx, struct xkb_rule_names *rmlvo)
274274
{
275275
#if ENABLE_PRIVATE_APIS
276276
struct xkb_component_names kccgst;
277277

278+
/* Resolve default RMLVO values */
279+
xkb_context_sanitize_rule_names(ctx, rmlvo);
280+
278281
if (!xkb_components_from_rules(ctx, rmlvo, &kccgst, NULL))
279282
return EXIT_FAILURE;
280283
if (test)

0 commit comments

Comments
 (0)