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



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to