loadkeys -u: Switch to Unicode mode, if necessary
PATCH 1/1 loadkeys -u: Switch to Unicode mode, if necessary
Make defkeys() KDSKBMODE to K_UNICODE before it starts to do KDSKBENT ioctls. Switch back to the preceding keyboard mode after defining keys.
This change is introduced for compatibility reasons, see
<http://bugs.gentoo.org/289265>. As a minor difference, the warning message telling users to run “kbd_mode -u” is printed whenever “loadkeys -u” is used, not only when actual Unicode keysyms are loaded.
--- man/man1/loadkeys.1.in | 16 ++++++++++++- src/loadkeys.y | 54 ++++++++++++++++++++++++++++++++++++----------- 2 files changed, 55 insertions(+), 15 deletions(-)
man/man1/loadkeys.1.in +14 -2
@@ -160,9 +160,21 @@ The .I -u (or .IR --unicode ) -switch tells +switch forces .B loadkeys -to bypass the check and assume that the console is in Unicode mode. +to convert all keymaps to Unicode. If the keyboard is in a +non-Unicode mode, such as XLATE, +.B loadkeys +will change it to Unicode for the time of its execution. A +warning message will be printed in this case. +.LP +It is recommended to run +.BR kbd_mode (1) +before +.B loadkeys +instead of using the +.I -u +option. .SH "OTHER OPTIONS" .TP .B \-h \-\-help
src/loadkeys.y +41 -13
127 lines not on this page · raw message
Signature · 1 line
1.6.5
Alexey Gladkov
AppliedQuoted 7 lines · Michael Schutte
Make
defkeys()KDSKBMODE toK_UNICODEbefore it starts to do KDSKBENT ioctls. Switch back to the preceding keyboard mode after defining keys.This change is introduced for compatibility reasons, see
<http://bugs.gentoo.org/289265>. As a minor difference, the warning message telling users to run “kbd_mode -u” is printed whenever “loadkeys -u” is used, not only when actual Unicode keysyms are loaded.
Applied, thanks!
Signature · 1 line
Rgrds, legion