View previous topic :: View next topic |
Author |
Message |
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Fri Apr 26, 2013 7:04 am Post subject: No unicode in tty |
|
|
Hi all,
For some reason, while working find in the past, I think unicode is not working in a tty console. I will see black question marks in white ovals. I checked to see whether I had the right settings in rc.conf, etc. and saw no problems. Typing locale seems to reveal all is well, too. Any ideas of what might be going on and how to fix it?
Code: |
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE=C
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
|
Best,
Alex |
|
Back to top |
|
|
Freeky Tux's lil' helper
Joined: 11 Mar 2011 Posts: 129 Location: Novosibirsk, Russia
|
Posted: Fri Apr 26, 2013 7:25 am Post subject: |
|
|
Post contents of your Code: | cat /etc/conf.d/consolefont |
This file contains font which is used in tty. May be this font doesn't support unicode. |
|
Back to top |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Fri Apr 26, 2013 8:09 am Post subject: |
|
|
Hi,
Freeky wrote: | Post contents of your Code: | cat /etc/conf.d/consolefont |
This file contains font which is used in tty. May be this font doesn't support unicode. |
Thanks for replying so quickly. The consolefont used is "lat9w-16".
Best,
Alex |
|
Back to top |
|
|
Freeky Tux's lil' helper
Joined: 11 Mar 2011 Posts: 129 Location: Novosibirsk, Russia
|
Posted: Sun Apr 28, 2013 5:34 pm Post subject: |
|
|
Are you trying another font or default font by commenting consolefont at /etc/conf.d/consolefont?
You can check font without restarting consolefont just run |
|
Back to top |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Sun Apr 28, 2013 5:49 pm Post subject: |
|
|
Freeky wrote: | Are you trying another font or default font by commenting consolefont at /etc/conf.d/consolefont?
You can check font without restarting consolefont just run |
Is there any guide to which fonts are compatible with unicode?
Best,
Alex |
|
Back to top |
|
|
wcg Guru
Joined: 06 Jan 2009 Posts: 588
|
Posted: Sun Apr 28, 2013 10:39 pm Post subject: |
|
|
You can check the font files themselves, uncompressed, with the "file"
program (package is "=sys-apps/file-5.11" on stable amd64).
Try it with a couple of font files that you are not using to see what the
output is like:
Code: |
# as root user
gunzip /usr/share/consolefonts/iso07.16.gz
gunzip /usr/share/consolefonts/iso07u-16.psfu.gz
file /usr/share/consolefonts/iso07.16
file /usr/share/consolefonts/iso07u-16.psfu
# clean up
gzip -9 /usr/share/consolefonts/iso07*
|
Any console font file with an embedded unicode map should have
output like the second file command.
(According to /usr/share/consolefonts/README.lat9 the font you
have, lat9w-16, should be a unicode-compatible font.)
What happens if you use, say, iso09.16 with an explicit unicode map
load?
Code: |
setfont -u /usr/share/unimaps/iso09.uni iso09.16
|
(You can use psfaddtable with a .psf font file and a unicode map file to
embed the map in the font file, creating a .psfu font file.) _________________ TIA |
|
Back to top |
|
|
|