bootmisc update: setfont/consolechars codepage support added - please review
Zbigniew Luszpinski
zbiggy at o2.pl
Wed Mar 7 13:36:41 CET 2007
Hello,
it looks there is a little problem with fonts.
The -m parameter for setfont/consolechars is not provided so correct codepage
is not set. This is non issue for USA and Western Europe as the default
legacy us-ascii and valid for these regions ISO8859-1 are not different at
everyday linux use on console.
Unfortunately the others need to set correct charmap to have all needed
local characters visible.
The attached patch allows to setup correct charmap by reading its name
from /etc/charmap. If the file does not exist the codepage is not set and
defaults to us-ascii as before.
How to create charmap file:
Make raw text file with name of charmap inside.
Where to look for charmap name:
for kbd module the setfont codepages are present in:
/usr/share/consolefonts/partialfonts/
Just get the name without extension (ignore everything after first dot):
for example (to load ISO8859-2):
name is: 8859-2
for all 8859-2.a0-ff.??.gz - setfont auto detects which codepage file should
load by looking at loaded font size.
The bad thing:
consolechars uses different codepage names (and possible different location -
but this is not issue as consolechars autodetect the right path) however uses
the same -m parameter to choose codepage and also ignores everything after
first dot in filename). Example for ISO8859-2 to put inside /etc/charmap:
iso02
list of attachments:
bootmisc.patch - the patch
charmap.setfont - example of charmap file for setfont
charmap.consolechars - example of charmap file for consolechars
have a nice day,
Zbigniew 'zbiggy' Luszpinski
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bootmisc.patch
Type: text/x-diff
Size: 581 bytes
Desc: not available
Url : http://foo-projects.org/pipermail/lunar/attachments/20070307/3fe2335d/bootmisc.bin
-------------- next part --------------
iso02
-------------- next part --------------
8859-2
More information about the Lunar
mailing list