Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144938 - sys-apps/baselayout: unicode support in /etc/init.d/consolefont.sh
Summary: sys-apps/baselayout: unicode support in /etc/init.d/consolefont.sh
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Highest enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 153556
Blocks:
  Show dependency tree
 
Reported: 2006-08-23 23:41 UTC by Jozsef Daniel
Modified: 2006-12-06 15:06 UTC (History)
1 user (show)

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


Attachments
Modified /etc/init.d/consolefont (consolefont,1.50 KB, text/plain; charset=us-ascii)
2006-08-23 23:42 UTC, Jozsef Daniel
Details
New consolefont (consolefont,1.48 KB, text/plain)
2006-08-24 07:08 UTC, Roy Marples (RETIRED)
Details
unicodemap support for consolefont (consolefont,1.50 KB, text/plain)
2006-08-24 07:21 UTC, Roy Marples (RETIRED)
Details
Look for unimaps in /usr/share/unimaps (consolefont.patch,336 bytes, patch)
2006-08-25 08:17 UTC, Jozsef Daniel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jozsef Daniel 2006-08-23 23:41:00 UTC
Hi!
Since it didn't work out of the box, I modified my /etc/init.d/consolefont.sh to respect the UNICODE config variable. If set, it interprets CONSOLETRANSLATION as a unicode console translation map from /usr/share/unimaps.
This is what is needed on a unicode terminal, and setting the UNICODE var does set the terminals to unicode, so I think this is the way things are supposed to work.

I have used this setup for 3 years now - I am Hungarian, so I need latin2 on the console, which I have. The settings I use are:
UNICODE="yes"
CONSOLEFONT="iso02.14"
CONSOLETRANSLATION="iso02.uni"
Comment 1 Jozsef Daniel 2006-08-23 23:42:12 UTC
Created attachment 94990 [details]
Modified /etc/init.d/consolefont

Check the part where it loads the console translation.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2006-08-24 07:08:52 UTC
Created attachment 95013 [details]
New consolefont

Try this script instead. It allows UNICODEMAP to be set alongside CONSOLETRANSLATION as sometimes both are needed.

Requires kbd-1.12-r8 as prior versions mangled the unimaps path thanks to a Debian patch we're using.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-08-24 07:09:22 UTC
BTW, next time send patches please :P
Comment 4 Roy Marples (RETIRED) gentoo-dev 2006-08-24 07:21:50 UTC
Created attachment 95014 [details]
unicodemap support for consolefont

This one allows both :)
Comment 5 Jozsef Daniel 2006-08-25 08:09:16 UTC
I agree, leaving both is best.
Comment 6 Jozsef Daniel 2006-08-25 08:17:43 UTC
Created attachment 95069 [details, diff]
Look for unimaps in /usr/share/unimaps

I think it's reasonable to seek unicode maps in /usr/share/unimaps, instead of relying on the user to set the full path.
Comment 7 SpanKY gentoo-dev 2006-08-25 22:23:28 UTC
Comment on attachment 95069 [details, diff]
Look for unimaps in /usr/share/unimaps

no, the util needs to know where to search ... forcing the path is wrong
Comment 8 Roy Marples (RETIRED) gentoo-dev 2006-09-02 11:42:41 UTC
(In reply to comment #7)
> (From update of attachment 95069 [details, diff] [edit])
> no, the util needs to know where to search ... forcing the path is wrong
> 

Which is why I said it requires kbd-1.12-r8 as that has the path fix :)

I'll commit the fixed init script one that kbd version goes stable.
Comment 9 Roy Marples (RETIRED) gentoo-dev 2006-12-06 15:06:10 UTC
This was fixed in baselayout-1.13.0_alpha7