Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No unicode in tty
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Fri Apr 26, 2013 7:04 am    Post subject: No unicode in tty Reply with quote

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
View user's profile Send private message
Freeky
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2011
Posts: 129
Location: Novosibirsk, Russia

PostPosted: Fri Apr 26, 2013 7:25 am    Post subject: Reply with quote

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
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Fri Apr 26, 2013 8:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Freeky
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2011
Posts: 129
Location: Novosibirsk, Russia

PostPosted: Sun Apr 28, 2013 5:34 pm    Post subject: Reply with quote

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
Code:
setfont <fontname>
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Apr 28, 2013 5:49 pm    Post subject: Reply with quote

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
Code:
setfont <fontname>


Is there any guide to which fonts are compatible with unicode?

Best,

Alex
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Sun Apr 28, 2013 10:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum