On 10/29/17 12:31 AM, Alexander Pyhalov wrote:
Hello.
I was investigating, why when I choose Russian keyboard layout during
installation, it changes language in lightdm to Russian by default, and as it
results
in Xorg layout being just 'ru', not 'us,ru' and doesn't set any switch keys, you
can stuck trying to enter login name in Russian.
The issue is evident and strange. I mean, I don't know what they should do.
Installer calls /usr/bin/kbd -s, and you can select your layout. Then HAL
in
https://github.com/illumos/illumos-gate/blob/f7877f5d39900cfd8b20dd673e5ccc1ef7cc7447/usr/src/cmd/hal/probing/xkb/probe-xkb.c#L334
sets input.x11_options.XkbLayout to "ru". When X starts and finds it, it does
what it was asked to do...
But we never set alternative layout. We never set toggle keys. So, user can't
switch to English.
The Solaris X server inheriting the console keyboard layout goes back to the
Xsun days before XKB brought multiple layouts & layout switching. When we
updated to Xorg & HAL, we kept the same model because it's what we knew and
what users expected - but none of us used a keyboard layout where alternatives
were necessary or really knew how multiple XKB layouts worked, so what you
have is more a result of our ignorance than a careful design decision.
--
-Alan Coopersmith- [email protected]
Oracle Solaris Engineering - https://blogs.oracle.com/alanc
------------------------------------------
illumos-discuss
Archives:
https://illumos.topicbox.com/groups/discuss/discussions/T83b946bc033900b2-Mc516579b536fec32b872a2a6
Powered by Topicbox: https://topicbox.com