Sergey Manucharyan wrote:
> I'm trying to make midnight commander to show filenames in unicode.
> When I set LANG=en_US.UTF-8 (for example), I can see unicode filenames
> in xterm or xfce Terminal, but mc doesn't show them properly. Some
> characters are displayed, but some doesn't - just squares or question
> marks.
From were are you starting mc? From the xterm/xfce terminal or from the
text console?
If you start it from the text console the problem could be the font you
are using.
In /etc/rc.conf there is the following line
CONSOLEFONT=......
Set it according to your need, the available fonts are located in
/usr/share/kbd/consolefonts.
it should be something like
CONSOLEFONT=lat1-16.psfu.gz
Another parameter that could help is
CONSOLEMAP=.....
Normally consolemap are loaded automatically accordingly to the consolefont.
Files are in /usr/share/kbd/unimaps in console map you should use a
complete path, something like
CONSOLEMAP=/usr/share/kbd/unimaps/8859-1.a0-ff.uni
These 2 parameters are used with setfont command (man setfont for more
details) as follow
rc.sysinit:
/usr/bin/setfont -m $CONSOLEMAP $CONSOLEFONT -C /dev/vc/${i}
You can experiment the right combination using the following line (it
reproduce the above setting)
/usr/bin/setfont -m /usr/share/kbd/unimaps/8859-1.a0-ff.uni
lat1-16.psfu.gz -C /dev/vc/1
It set the font for the console 1 (-C /dev/vc/1), actually I think the
change take place immediately but to be sure log out from the console
and then login again.
_______________________________________________
arch mailing list
[email protected]
http://www.archlinux.org/mailman/listinfo/arch