diff --git a/usr.sbin/sade/keymap.c b/usr.sbin/sade/keymap.c index f6dcfd677fc1..de5b8c651d2c 100644 --- a/usr.sbin/sade/keymap.c +++ b/usr.sbin/sade/keymap.c @@ -103,8 +103,11 @@ keymapMenuSelect(dialogMenuItem *self) if ((choice = keymapSetDefault(prefix)) == -1) { snprintf(prefix, sizeof(prefix), "keymap=%s", lang); - if ((choice = keymapSetDefault(prefix)) == -1) - choice = 0; + if ((choice = keymapSetDefault(prefix)) == -1) { + snprintf(prefix, sizeof(prefix), "keymap=us.iso", lang); + if ((choice = keymapSetDefault(prefix)) == -1) + choice = 0; + } } dmenuSetDefaultIndex(&MenuSysconsKeymap, &choice, &scroll, &curr, &max); diff --git a/usr.sbin/sysinstall/keymap.c b/usr.sbin/sysinstall/keymap.c index f6dcfd677fc1..de5b8c651d2c 100644 --- a/usr.sbin/sysinstall/keymap.c +++ b/usr.sbin/sysinstall/keymap.c @@ -103,8 +103,11 @@ keymapMenuSelect(dialogMenuItem *self) if ((choice = keymapSetDefault(prefix)) == -1) { snprintf(prefix, sizeof(prefix), "keymap=%s", lang); - if ((choice = keymapSetDefault(prefix)) == -1) - choice = 0; + if ((choice = keymapSetDefault(prefix)) == -1) { + snprintf(prefix, sizeof(prefix), "keymap=us.iso", lang); + if ((choice = keymapSetDefault(prefix)) == -1) + choice = 0; + } } dmenuSetDefaultIndex(&MenuSysconsKeymap, &choice, &scroll, &curr, &max);