--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: [xserver-xorg] Please do not ask for keyboard layout at high priority for ca fr (French Canadian)
- From: Filipus Klutiero <chealer@gmail.com>
- Date: Mon, 6 Oct 2008 20:49:14 -0400
- Message-id: <200810062049.14723.chealer@gmail.com>
Package: xserver-xorg
Version: 1:7.3+17
Severity: wishlist
Tags: patch
In xserver-xorg.postinst, when the presetting of keyboard layout from
console-setup is impossible, like in d-i, xserver-xorg falls back to
debian-installer/keymap. For example:
cf) XMAP="ca"; VARIANT="fr";;
means that for the French Canadian console keymap, XKBLAYOUT is set to ca.
There is a similar mapping for other layouts too, but something is special
about ca fr:
if [ "$XMAP" = "UNKNOWN" ]; then
warn "failed to infer keyboard layout from
layout/lang '$DI_KEYMAP--$REALLANG'"
PRIORITY=medium
XMAP="us"
MODEL="pc104"
# prompt for layout if we ended up with French Canadian; apparently having
# US-layout keyboards is common there
elif [ "$XMAP" = "ca" ] && [ "$VARIANT" = "fr" ]; then
PRIORITY=high
else
PRIORITY=low
fi
Setting the debconf prompt to high priority means that people using a French
Canadian keyboard are prompted twice for the keyboard layout, once for the
console and once for X, even during a non-expert install. This doesn't make
sense. It is true that French Canadians often use US English keyboards, but
of course those that use French Canadian keyboards in console will want the
same layout in X.
The patch is pretty trivial:
- # prompt for layout if we ended up with French Canadian; apparently having
- # US-layout keyboards is common there
- elif [ "$XMAP" = "ca" ] && [ "$VARIANT" = "fr" ]; then
- PRIORITY=high
--- End Message ---