Sunday, August 9, 2009

Netbeans : cannot set LC_CTYPE locale

Problem :

When i configure subversion for Netbeans, I had this problem :



Solution :


The problem is that LC_CTYPE was unknown.
In fact, you have to check that this variable value is correctly spell.
To do that, you can do : locale -a

Example :
$ locale -a
C

POSIX
fr_FR fr_FR.iso88591
fr_FR.iso885915@euro
fr_FR@euro


Next, you have to check in the configuration file :
On gentoo :
vi /etc/env.d/02locale


Example :
vi /etc/env.d/02locale

LANG="fr_FR.iso885915@euro"
LC_COLLATE="C"

=> You must have LANG variable initializes with one of the result of the command : locale -a

If you want, you can also let every Linux user to configure their own variable.

vi ~/.bashrc

Example :
vi ~/.bashrc
export LANG="fr_FR.iso885915@euro"
export LC_ALL=C





No comments:

Post a Comment