Bug#1012757: keyboard-configuration: generated /etc/default/keyboard file is invalid (xkb_variant/xkb_options requires a string value)
On 2022-06-13 14:17:49 +0200, Vincent Lefevre wrote:
> I now get warnings in the /var/log/Xorg.0.log file:
>
> [ 15.840] (**) Option "xkb_model" "pc105"
> [ 15.840] (**) Option "xkb_layout" "gb"
> [ 15.840] (WW) Option "xkb_variant" requires a string value
> [ 15.840] (WW) Option "xkb_options" requires a string value
> [...]
> [ 15.904] (**) Option "xkb_model" "pc105"
> [ 15.904] (**) Option "xkb_layout" "gb"
> [ 15.904] (WW) Option "xkb_variant" requires a string value
> [ 15.904] (WW) Option "xkb_options" requires a string value
> [...]
> [ 15.936] (**) Option "xkb_model" "pc105"
> [ 15.936] (**) Option "xkb_layout" "gb"
> [ 15.936] (WW) Option "xkb_variant" requires a string value
> [ 15.936] (WW) Option "xkb_options" requires a string value
>
> The /etc/default/keyboard file contains in particular:
>
> XKBMODEL="pc105"
> XKBLAYOUT="gb"
> XKBVARIANT=""
> XKBOPTIONS=""
>
> So it appears that the empty strings are invalid.
I suppose that these warnings are due to
case OPTV_STRING:
if (*s == '\0') {
if (markUsed) {
xf86DrvMsg(scrnIndex, X_WARNING,
"Option \"%s\" requires a string value\n",
p->name);
}
p->found = FALSE;
}
in file hw/xfree86/common/xf86Option.c of xorg-server.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: