Bug 153190 - after the change of keymap to cs lacalized characters are not shown
Summary: after the change of keymap to cs lacalized characters are not shown
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: Other (show other bugs)
Version: Beta 4
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Jiří Suchomel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 20:20 UTC by Ladislav Michnovic
Modified: 2006-04-03 13:14 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch for /usr/share/YaST2/clients/language.ycp (379 bytes, patch)
2006-03-31 14:43 UTC, Jiří Suchomel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ladislav Michnovic 2006-02-23 20:20:51 UTC
I changed a keymap with
 loadkeys cs in konsole.
But when I write special characters: ěščřžýáíé nothing appears. 
After enter bash complains : command not found. So the characters are written but only not shown.
Comment 1 Michael Gross 2006-02-24 16:35:52 UTC
Ladislav: Does `setxkbmap cs' work for you? AFAIK loadkeys does not really work for X11 ;)
Comment 2 Ladislav Michnovic 2006-02-24 16:51:40 UTC
Actualy no. 
Not in console. I'm trying to change keyboard in console not within X.
Btw. within X
 setxkbmap cs 
loads incorrect layout. I saw cyrilic characters. Not latin characters.
 setxkbmap sk 
loaded correct layout.
Comment 3 Michael Gross 2006-02-24 16:54:24 UTC
*** Bug 153179 has been marked as a duplicate of this bug. ***
Comment 4 Michael Gross 2006-02-24 16:57:06 UTC
Juergen: Is `loadkeys' supposed to work with X11?
Comment 5 Ladislav Michnovic 2006-02-24 16:58:59 UTC
I'm talking about console not about X11. The black screen if you press ctrl+alt+F1.
Comment 6 Michael Gross 2006-02-24 19:06:00 UTC
I'll reassign it to Juergen.
Comment 7 Juergen Weigert 2006-03-28 11:59:25 UTC
/bin/loadkeys comes from the kbd package. It has no interaction with X11.
This bug is not about X11 afaik. It is about console. 

The problem here is that we have two distinct features of the console that
need to be adressed seperatly:

a) which fonts are used on the screen.
b) which keycodes are mapped on the keyboard.


loadkeys addresses b) only.
You need to use /bin/setfont to address a).
Have a look at /usr/share/kbd/consolefonts/ and see if you recognize a
usable font there. Unfortunatly names like 'cs' or 'sk' do not work here.

Does that help?

Comment 8 Ladislav Michnovic 2006-03-29 12:24:42 UTC
Suitable font is lat2-16. Of course in english installation is font set to latin1, which is unlikely unusable.
I'd be happy if the lat2-16 font could be set as default font for console if user selects Slovak language in installation. It works if czech language is selected during instalation.
But this is probably task for yast team. 
Comment 9 Juergen Weigert 2006-03-30 16:34:06 UTC
Do you want to reassign?
I'll close as invalid otherwise, because I don't see what kbd improvement could help here.
Comment 10 Ladislav Michnovic 2006-03-30 17:04:48 UTC
I agree with you.
Jiri, could you solve this problem, please? 
The point is in comment #8.
Comment 11 Jiří Suchomel 2006-03-31 07:55:11 UTC
YaST sets this font for both czech and slovak (see CONSOLE_FONT in /etc/sysconfig/console). If it doesn't work with these settings, the problem is not in yast.
Comment 12 Ladislav Michnovic 2006-03-31 08:32:57 UTC
I have to perform slovak installation and I'll tell you in Monday.
Btw. In english default language instalation is CONSOLE_FONT="lat9w-16.psfu"
which doesn't show czech or slovak characters correctly in console. I suggest to change it to some other font, which can show cz_sk characters and won't break anythig else.
Comment 13 Jiří Suchomel 2006-03-31 08:41:23 UTC
Mike, could you comment the proposal?
Comment 14 Ladislav Michnovic 2006-03-31 11:38:25 UTC
When I changed the language in Yast to Slovak and then just for sure to the Czech language, the font is still the same:
 CONSOLE_FONT="lat9w-16.psfu".
I have also checked the option: Adapt Keyboard Layout to $LANGUAGE.
On other mashine, which owner performed installation in czech language, it has the correct font: CONSOLE_FONT="lat2-16.psfu". (Also SL Beta 8).
Comment 15 Jiří Suchomel 2006-03-31 11:59:03 UTC
Hm, I'll test it.
Meanwhile, setting NEEDINFO for Mike regarding the default font.
Comment 16 Jiří Suchomel 2006-03-31 14:43:24 UTC
Created attachment 75946 [details]
patch for /usr/share/YaST2/clients/language.ycp

Ladislav, could you try this patch for /usr/share/YaST2/clients/language.ycp?
Comment 17 Ladislav Michnovic 2006-04-03 09:12:17 UTC
Your patch works. 
Comment 18 Mike Fabian 2006-04-03 12:09:11 UTC
Ladislav> Btw. In english default language instalation is
Ladislav> CONSOLE_FONT="lat9w-16.psfu" which doesn't show czech or
Ladislav> slovak characters correctly in console. I suggest to change
Ladislav> it to some other font, which can show cz_sk characters and
Ladislav> won't break anythig else.

That's not so easy. The font support on the console is very limited.
More than 512 glyphs in one font are not possible. And even fonts
with 512 glyphs cannot be used by default because it makes
bold face impossible.

Some years ago (When we switched to using UTF-8 as the default for
SuSE Linux), we tried to use the font
/usr/share/kbd/consolefonts/LatArCyrHeb-16.psfu.gz

as the default font. This is a font with 512 glyphs which looks
not too bad and supports all European languages based on
the Latin alphabet and on top of that also Arabic, Cyrillic
and Hebrew. I.e. this is a font which covers as many languages
as currently possible on the Linux console.

Unfortunately with this font using bold face became impossible
which was a severe usability problem for the ncurses interface
of YaST. Therefore we could not use that font as the default,
we had to go back to fonts containing only 256 glyphs in one font.

Having only 256 glyphs available makes it difficult to support many
languages on the console at the same time.  I don't know any font
which is really better than "lat9w-16.ps" for a default English
installation.

Comment 19 Ladislav Michnovic 2006-04-03 12:28:07 UTC
Thank you for comprehensive information. 
I am satisfied if the font is suitable for the national locales, which fixes the patch in comment #16. 
Comment 20 Jiří Suchomel 2006-04-03 13:14:12 UTC
Fixed (with the patch from comment #16) in yast2-country-2.13.20.