LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo
User Name
Password
Gentoo This forum is for the discussion of Gentoo Linux.

Notices


Reply
  Search this Thread
Old 08-08-2009, 03:58 PM   #1
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Rep: Reputation: 29
Gentoo UTF-8 problem


There is a small problem I have with UTF-8 support in xterm: characters that do not belong to ASCII are simply leaved as blank characters.
Here is my /etc/locale-gen:
Code:
en_US ISO-8859-1
en_US.UTF-8 UTF-8
ru_RU.KOI8-R KOI8-R
ru_RU.CP1251 CP1251
ru_RU.UTF-8 UTF-8
ro_RO.UTF-8 UTF-8
ru_RU ISO-8859-5
ro_RO ISO-8859-2
Here is the output of "locale -a" command:
Code:
C
POSIX
en_US
en_US.iso88591
en_US.utf8
ro_RO
ro_RO.iso88592
ro_RO.utf8
romanian
ru_RU
ru_RU.cp1251
ru_RU.iso88595
ru_RU.koi8r
ru_RU.utf8
russian
Here is my /etc/env.d/02locale
Code:
LC_COLLATE="C"
LC_CTYPE="en_US.utf8"
My xterm font is : XTerm*font: -xos4-terminus-medium-r-normal--12-120-72-72-c-60-iso8859-1.
Also all the programs are compiled with "unicode" and "nls" use-flags.

At the boot time I didn't notice any errors. Also google didn't give any hints on how should this problem be solved.
 
Old 08-08-2009, 05:04 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
localegen and the "locale -a" list just show the encodings available for use on your system. The only one that's important here is the one you're using at the moment, which the plain "locale" (no arguments) command will show you. But since your LC_CTYPE seems to be UTF-8 (assuming that that's what /etc/env.d/03locale configures), that's probably not your problem.

I'm going to guess that it's the xterm font. Since it says "iso8859-1" it may not be able to handle unicode characters. Have you tried changing it to something else yet?
 
Old 08-08-2009, 05:58 PM   #3
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Original Poster
Rep: Reputation: 29
David the H., speaking about the font, I know that the Terminus fonts support UTF.
Also I tried these fonts, but the effect is the same:
-xos4-terminus-bold-r-normal--12-120-72-72-c-60-microsoft-cp1251
-xos4-terminus-medium-r-normal--12-120-72-72-c-60-koi8-r
 
Old 08-09-2009, 12:40 AM   #4
dracuss
Member
 
Registered: May 2006
Location: Chisinau, Moldova
Distribution: Gentoo, Debian sid
Posts: 151

Original Poster
Rep: Reputation: 29
David the H., thank you very much. Indeed I should have used the ISO-10646-1 version of the font.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to input non-utf characters from utf-8 linux enviroment? jadas Linux - General 6 02-07-2009 03:20 PM
UTF-8 emacs and gentoo troubles cvelasquez Linux - Distributions 0 05-24-2008 01:08 PM
im getting UTF-8 to STRING: Could not open converter from 'UTF-8' to 'ISO-8859-1' jabka Linux - Newbie 2 11-24-2006 05:44 AM
[Enter] in text documents diffrent on Windows and Linux? UTF-8/UTF-16 problem or? brynjarh Linux - General 1 11-24-2004 05:20 AM
X11 / UTF-8 locale seems missing 'fr_FR.UTF-8' chrsitophermann Debian 11 07-17-2004 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Gentoo

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration