Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324351 - >sys-apps/kbd-1.5: broken pt-latin1 keymap (no composed keys)
Summary: >sys-apps/kbd-1.5: broken pt-latin1 keymap (no composed keys)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 17:16 UTC by ashtophet
Modified: 2010-07-06 04:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
loadkeys -v pt-latin1 (WORKING), using 1.5 (loadkeys_good.log,18.32 KB, text/plain)
2010-06-16 17:17 UTC, ashtophet
Details
loadkeys -v pt-latin1 (NOT WORKING, 1.5.2-r1) (loadkeys_bad.log,18.33 KB, text/plain)
2010-06-16 17:18 UTC, ashtophet
Details
dumpkeys (WORKING, 1.5) (dumpkeys_good.log,22.00 KB, text/plain)
2010-06-16 17:18 UTC, ashtophet
Details
dumpkeys (NOT WORKING, 1.5.2-r1) (dumpkeys_bad.log,22.47 KB, text/plain)
2010-06-16 17:19 UTC, ashtophet
Details
paludis --contents kbd (1.5) (kbd-contents-1.5.log,31.81 KB, text/plain)
2010-06-16 17:20 UTC, ashtophet
Details
paludis --contents kbd (1.5.2.r1) (kbd-contents-1.5.2-r1.log,31.07 KB, text/plain)
2010-06-16 17:21 UTC, ashtophet
Details
kbd keymap directory (1.5) (kbd-1.15.tar.bz2,406.87 KB, text/plain)
2010-06-16 17:23 UTC, ashtophet
Details
kbd keymap directory (1.5.2-r1) (kbd-1.15.2-r1.tar.bz2,420.02 KB, text/plain)
2010-06-16 17:24 UTC, ashtophet
Details
loadkeys -v pt-latin1 (WORKING if I run kbd_mode -u after it) after kbd_mode -a, 1.5.2-r1 (loadkeys-1.5.2-r1_after_kbd_mode-a.log,18.32 KB, text/plain)
2010-06-30 04:04 UTC, ashtophet
Details
loadkeys -v pt-latin1 after kbd git commit b4735104164bb5b5b23f885caa5011f8506eb773 (loadkeys-ksyms_patch.log,18.32 KB, text/plain)
2010-07-06 04:17 UTC, ashtophet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ashtophet 2010-06-16 17:16:17 UTC
Since >sys-apps/kbd-1.5 console pt-latin1 keymap doesn't allow to type characters as 'ã,â,ê,ô,à,á'
When you type that key, nothing happens.

Reproducible: Always

Steps to Reproduce:
1. Install >sys-apps/kbd-1.5
2. loadkeys -v pt-latin1
3.

Actual Results:  
'construção' becomes 'construço', e.g.

Expected Results:  
'construção', e.g.

Keymaps directories:

1.5 version:        http://www.ashtophet.org/files_bgo/kbd-1.5.tar.bz2 (WORKING)
1.5.2-r1 version:   http://www.ashtophet.org/files_bgo/kbd-1.5.2-r1.tar.bz2 (NOT WORKING)

Attached will be:

Logs running loadkeys -v pt-latin1 with 1.5 and 1.5.2-r1.
Logs running dumpkeys with 1.5 and 1.5.2-r1.
Logs listing contents of 1.5 and 1.5.2-r1 installations.
Comment 1 ashtophet 2010-06-16 17:17:19 UTC
Created attachment 235603 [details]
loadkeys -v pt-latin1 (WORKING), using 1.5
Comment 2 ashtophet 2010-06-16 17:18:14 UTC
Created attachment 235605 [details]
loadkeys -v pt-latin1 (NOT WORKING, 1.5.2-r1)
Comment 3 ashtophet 2010-06-16 17:18:49 UTC
Created attachment 235607 [details]
dumpkeys (WORKING, 1.5)
Comment 4 ashtophet 2010-06-16 17:19:32 UTC
Created attachment 235609 [details]
dumpkeys (NOT WORKING, 1.5.2-r1)
Comment 5 ashtophet 2010-06-16 17:20:20 UTC
Created attachment 235611 [details]
paludis --contents kbd (1.5)
Comment 6 ashtophet 2010-06-16 17:21:03 UTC
Created attachment 235613 [details]
paludis --contents kbd (1.5.2.r1)
Comment 7 ashtophet 2010-06-16 17:23:36 UTC
Created attachment 235615 [details]
kbd keymap directory (1.5)
Comment 8 ashtophet 2010-06-16 17:24:24 UTC
Created attachment 235617 [details]
kbd keymap directory (1.5.2-r1)
Comment 9 Alexey Gladkov 2010-06-20 11:16:57 UTC
It seems to be that this is a bug in detection keysym type.
Comment 10 Alexey Gladkov 2010-06-20 11:29:36 UTC
$ grep masculine pt-latin1.map 
keycode  40 = masculine        ordfeminine

$ grep -m1 0x00ba ksyms.c
	{ 0x00ba, "masculine" },

$ grep 'define.*\^ 0xf000' loadkeys.c
#define U(x) ((x) ^ 0xf000)

$ echo $((0x00ba))
186

$ echo $((0x00ba ^ 0xf000))
61626

$ grep '40, table 0 ' loadkeys_good.log 
keycode 40, table 0 = 186

$ grep '40, table 0 ' loadkeys_bad.log 
keycode 40, table 0 = 61626
Comment 11 ashtophet 2010-06-21 10:35:32 UTC
If there's anything I could add or test to help, let me know.
Thank you very much.
Comment 12 Alexey Gladkov 2010-06-29 15:43:23 UTC
loadkeys has detected that your console is in unicode mode ... so it tries to load the keymap in this mode.

Please, try the following way:
$ kbd_mode -a
$ loadkeys -v pt-latin1
Comment 13 ashtophet 2010-06-30 04:00:49 UTC
Hi.  I follow the steps with no luck (attached is loadkeys log). However if I do an kbd_mode -u _after_ loadkeys everything turns fine.  My console should be in unicode mode. I don't know if I'm doing something wrong, but I'm using this settings for years and the problem only occurs when using >sys-apps/kbd-1.5.  Probably relevant config files:  awk '/^[^#]/' /etc/conf.d/consolefont: consolefont="sigma-general-8x16"  awk '/^[#]/' /etc/rc.conf rc_interactive="YES" rc_shell=/sbin/sulogin rc_depend_strict="NO" rc_logger="YES" unicode="YES" net_fs_list="afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre ncpfs nfs nfs4 ocfs2 shfs smbfs" rc_tty_number=12   Thank you very much.
Comment 14 ashtophet 2010-06-30 04:04:07 UTC
Created attachment 237003 [details]
loadkeys -v pt-latin1 (WORKING if I run kbd_mode -u after it) after kbd_mode -a, 1.5.2-r1
Comment 15 Alexey Gladkov 2010-06-30 14:41:27 UTC
I just added --ascii option to prevent switching to unicode mode. This change allows not use kbd_mode before and after loadkeys.

http://git.altlinux.org/people/legion/packages/kbd.git?p=kbd.git;a=commitdiff;h=000b966ae19bdb9e2d27dd8a02c83a6f282abe6d
Comment 16 ashtophet 2010-06-30 15:16:42 UTC
Ok. Let's see if I'm doing things right.

Installed patched sys-apps/kbd

# kbd_mode
# The keyboard is in Unicode (UTF-8) mode
# loadkeys pt-latin1 (or loadkeys -u pt-latin1)
( no fish)
# loadkeys -a pt-latin1
# loadkeys: warning: loading non-Unicode keymap on Unicode console
    (perhaps you want to do `kbd_mode -a'?)
  Loading /usr/share/keymaps/i386/qwerty/pt-latin1.map.gz
(ok)

Is this supposed to be this way?
Comment 17 Alexey Gladkov 2010-06-30 16:03:49 UTC
(In reply to comment #16)
> Is this supposed to be this way?

Yes.
Comment 18 Alexey Gladkov 2010-07-01 06:22:27 UTC
This is not a final fix. I will try to fix this regression in another way.
Comment 20 ashtophet 2010-07-06 04:14:58 UTC
Perfect, Alexey!

Tested both manually (log attached) and via gentoo init script.
Thank you _very_ much for your work. Guess we can call this bug FIXED.

Cheers.
Comment 21 ashtophet 2010-07-06 04:17:12 UTC
Created attachment 237657 [details]
loadkeys -v pt-latin1 after kbd git commit b4735104164bb5b5b23f885caa5011f8506eb773