Setting Display to UTF-8

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is in response to John Boyer's question about how to set the display 
to UTF-8. I just discovered this yesterday and learned more while writing 
this message. I'm writing now to expose any misconceptions that (probably) 
still remain:

It's probably already set that way, assuming the time zone was set during 
installation. The locale program shows all the locale-related environment 
variables. All of mine are set to en_US.UTF-8.

It appears that they all get changed, or at least masked, if I assign a 
value to LC_ALL. For example, 

LC_ALL="C" 

gives me the C locale and 

LC_ALL="POSIX" 

gives me the POSIX locale. Note that I have to export this variable or 
the locale program doesn't see it.

The command 

locale -a 

gives a list of all locales available on my computer.

locale -m

gives all the key maps. When setting LC_ALL I can apparently leave out all 
hyphens. For example, ISO-8859-15 is a key map on my machine but 
en_US.ISO885915 is permissible if not preferred when setting LC_ALL.

It is not an error to set LC_ALL to an invalid value. 

LC_ALL="junk";export LC_ALL

produced no errors and the locale command dutifully reported all LC 
variables as set to junk. The default collating sequence for the sort 
command honored the case of the letters (capitals first) as in C or POSIX. 
Unsetting LC_ALL returned everything to en_US.UTF-8 (note the hyphen).

So, that's the way it looks to me. OK all you old Unix geezers, where'd I 
mess up?

Lee



_______________________________________________

Blinux-list@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/blinux-list

[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]