summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sade
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2006-03-15 21:20:01 +0000
committerthompsa <thompsa@FreeBSD.org>2006-03-15 21:20:01 +0000
commit50c2d936c43eb02fa1e63a9481bb1adcef1e5857 (patch)
treebbb654e88996404c27becb8872924512383a16d1 /usr.sbin/sade
parentbf44b2399142c5c19044b8ec077d24f575b4837d (diff)
downloadFreeBSD-src-50c2d936c43eb02fa1e63a9481bb1adcef1e5857.zip
FreeBSD-src-50c2d936c43eb02fa1e63a9481bb1adcef1e5857.tar.gz
If a keymap file is not found for the selected country then default to the more
common USA ISO rather than index 0 (Belgian). Reviewed by: jhb MFC after: 1 day
Diffstat (limited to 'usr.sbin/sade')
-rw-r--r--usr.sbin/sade/keymap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/sade/keymap.c b/usr.sbin/sade/keymap.c
index f6dcfd6..de5b8c6 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);
OpenPOWER on IntegriCloud