xkbmap error check and locale