I've read around about too many people getting troubles with Unicode and UTF-8 in consoles (specially with ncurses).
I don't tell you this is the right way, but it worked for me. Maybe you find it useful.
All this work is, in some or another way, inspirated by other posts or HOWTOs.
Okey, let's begin.
First step: check that you have set the "unicode" and "slang" use-flags
To check them you must look out the output of:
Code: Select all
#emerge --infoIf you have it, then you are lucky! If not you may:
- update your system's profile to 2006.1/desktop then check if one of them is missing yet.
- add them manually to the USE in /etc/make.conf
Compiling a kernel supporting UTF-8
Update your kernel then configure it this way
Code: Select all
File systems --->
Native Language Support --->
(utf8) Default NLS Option
<*> NLS UTF8
Code: Select all
File systems --->
DOS/FAT/NT Filesystems --->
(850) Default Codepage for FAT
(utf8) Default iocharset for FAT
Once you get your new kernel ready, it is time to begin its use. Add it to your lilo or grub.
Creating and setting a new locale
For example, if your locale if "es_AR" (as in my own case, cause i'm argentinian and wanna talk spanish), you will need a new one that supports UTF-8. It will be named "es_AR.UTF-8". Lets create this locale.
Code: Select all
# localedef -i -c es_AR -f UTF-8 es_AR.UTF-8VERY MUCH IMPORTANT: use the locale corresponding to YOUR country or you gonna end talking spanish with me
You must add this new locale to yor /etc/locale.gen. If you never did it before check this link http://www.gentoo.org/doc/en/gentoo-x86 ... ap2_sect17
Now, set your locales. If you don't know how to do it, follow this guide http://www.gentoo.org/doc/en/guide-localization.xml
Enabling Unicode and UTF-8 in your system
We need a terminal font supporting UTF-8. Terminus is quite ugly, but it works.
Code: Select all
# emerge terminus-fontCode: Select all
UNICODE="no"Code: Select all
UNICODE="yes"Code: Select all
CONSOLEFONT=<anything>
#CONSOLETRANSLATION=""Code: Select all
CONSOLEFONT="ter-v16b"
#CONSOLETRANSLATION=""Code: Select all
if test -t 1 -a -t 2 ; then
echo -n -e '\033%G'
fiUpgdrading system to support Unicode
Smart ones do...
Code: Select all
# emerge -uDN worldCode: Select all
# emerge -uDN systemCode: Select all
# emerge -uDN mcCode: Select all
[i](for gnome-terminal)[/i]
# emerge -uDN gnome-terminal
[i](for Gnome Desktop)[/i]
# emerge -uDN gnome
Enjoying the unicode
For some strange reason, it doesn't work until you restart your system. So, until someone have any idea about how to avoid restartin you'll need to do it before see it work.
I'm expecting for good results by your side.
Have luck, pray and wear your talismans and amulets.
Again, check this guides. Study them: Bye.




