LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Console don't write but partially shows utf8 characters (keyboard is configured) (https://www.linuxquestions.org/questions/slackware-14/console-dont-write-but-partially-shows-utf8-characters-keyboard-is-configured-4175417010/)

dbagatini 07-16-2012 12:52 PM

Console don't write but partially shows utf8 characters (keyboard is configured)
 
Hi everyone

I am starting with Slack 13.37 and I am having some problems with accented characters in text mode (no problems under KDE).

I can't write any accented characters (ã é...) but i can see them in confirmation messages of some programs like nano or lynx (like quit confirmation) and using cat in texts. I can even copy and paste these characters (with gpm) but never write them directly with the keyboard.

- All my locale are pt_BR.UTF-8
- My rc.keymap is br-abnt2.map
Code:

if [ -x /usr/bin/loadkeys ]; then
/usr/bin/loadkeys br-abnt2.map
fi

- My rc.font is latin1-16.psfu
Code:

setfont -v lat1-16.psfu.gz
- I have tried unicode_start
- I am using Grub with vt.default_utf8=1
Code:

kernel /boot/vmlinuz root=/dev/sda1 vt.default_utf8=1 ro vga=788
I thanks any help...

Daniel

NonNonBa 07-17-2012 11:41 AM

Hello,

It looks like a problem with your rc.keymap.

Try first to exec this:

Code:

/usr/bin/loadkeys pt-latin9.map
If then all works as expected, your problem can be fixed just by editing the rc.keymap like this:

Code:

#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys pt-latin9.map
fi

EDIT: after some tests by there, it effectively seems none of the br-*abnt.map works... :\

dbagatini 07-17-2012 01:40 PM

Hi NonNonBa,

Nothing yet.

I tried all pt-*.map but they are not the correct keymaps neither have the correct accentuation.

EDIT:

There is a keymap called "us-acentos.map". I can write all accented letters using it BUT it is still the incorrect keymap, I need to guess the position of the characters.

Is there a way to edit this keymap and change it to abnt2 pattern?

Daniel

dbagatini 07-17-2012 02:45 PM

I found a solution.

Apparently it is a bug with kdb

I had to put two kbd_mode commands in the rc.keymap:
kbd_mode -a before the loadkeys command
kdb_mode -u after the loadkeys command

My rc.keyloas is like this:
Code:

if [ -x /usr/bin/loadkeys ]; then
/usr/bin/kbd_mode -a
/usr/bin/loadkeys br-abnt2.map
/usr/bin/kbd_mode -u
fi

Unfortunately I don't understand what happened but it worked fine.

I found this solution at the links below:
http://lists.altlinux.org/pipermail/...er/000270.html
http://bugs.gentoo.org/show_bug.cgi?id=324351

Thanks

Daniel


All times are GMT -5. The time now is 10:56 PM.