Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#9133 - initscripts: problem loading keymap
Attached to Project:
Arch Linux
Opened by Sergey Karpukhin (KSerZ) - Tuesday, 08 January 2008, 14:53 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 28 February 2008, 10:46 GMT
Opened by Sergey Karpukhin (KSerZ) - Tuesday, 08 January 2008, 14:53 GMT
Last edited by Roman Kyrylych (Romashka) - Thursday, 28 February 2008, 10:46 GMT
|
DetailsI use KEYMAP="ru-ms" in /etc/rc.conf and utf8 locale, and I don't able to type anything with russian symbols. It results in incorrect symbols with "ru-ms" and in hanging of console with "ru4". Local text in programs and files display well.
A solution is to add "dumpkeys -c koi8-r | loadkeys -u" to rc.sysinit. I think that it will be good to add new var in rc.conf like --- DUMPKEYS_CHARSET="koi8-r" # Or any other --- and in rc.sysinit: /usr/bin/dumpkeys -c koi8-r | /bin/loadkeys -u Popular solution on russian forums is to provide native unicode keymaps, but there's no one in kbd or in core packages, and it's difficult working with livecd for example. |
This task depends upon
Closed by Roman Kyrylych (Romashka)
Thursday, 28 February 2008, 10:46 GMT
Reason for closing: Won't fix
Thursday, 28 February 2008, 10:46 GMT
Reason for closing: Won't fix
FS#7641.FS#7641we changed/usr/bin/dumpkeys | /bin/loadkeys --unicode
to
/bin/loadkeys -q -u "$KEYMAP"
The original proposal was to use /usr/bin/dumpkeys ${KEYMAP_CHARSET:+"-c${KEYMAP_CHARSET}"} | /bin/loadkeys --unicode
(same as you propose)
but everyone confirmed that /bin/loadkeys -q -u "$KEYMAP" works the same way.
So I'm a bit confused.
BTW, AFAIR ru.map in kbd-1.13 package is an Unicode map. It's not the same as old ru.map from pre-1.13 kbd definetely.
Can you check and confirm this? (if it's not a unicode keymap - please provide one, it will be included)
P.S. There is a little mismatch in ru.map on right key "\ |" which must be "\ /" in russian layout, but is "\ |". New variant included.
/usr/bin/dumpkeys ${KEYMAP_CHARSET:+"-c${KEYMAP_CHARSET}"} | /bin/loadkeys --unicode
And add KEYMAP_CHARSET to rc.conf. Is this acceptable?
Regarding the ru keymap, please file a separate bug report for the appropriate package (kbd). It'd also, probably, be nice to file a bug upstream as well
FS#7641- that bug shouldn't reappear.However there's another important issue - support for multiple keymaps (see
FS#8579).From the summary of
FS#8579it looks like "dumpkeys | loadkeys" worked fine for multiple keymaps,but I don't know if using dumpkeys with $KEYMAP_CHARSET won't break this.
So it would be nice to get authors of
FS#7641andFS#8579involved in testing of the proposed change.About kbd - it's no longer developed by mainstream. The version in our repo is a patched version maintained by a developer of ALT Linux (for Aaron - it's one of 2 major Russian distros).
So, Sergey, while we can improve our kbd package (open a new report), I suggest you to send a patched version that fixes the "/|" bug to Alexey Gladkov at ALT Linux. ;-)
P.S.: since both
FS#7641andFS#8579are fixed now - the best solution IMO would be to actually fix all broken keymaps (Russian keymaps in kbd<=1.12 are ancient) to make them working with our current initscripts. This would also eliminate the need in yet another variable (KEYMAP_CHARSET).Most other languages had good keymaps for ages (e.g. there are ua and ua-utf Ukrainian keymaps, which are 95% similar to Russian keymaps, the most important difference is that they work out of the box).
(edit: lol, I've written 'language' instead of 'variable' first :D)
http://git.altlinux.org/people/legion/packages/kbd.git?p=kbd.git;a=commit;h=60625eeaaae6676e1e949b34966dff519fc428db