Le 20.07.2007 15:24:17, Raffaella Traniello a écrit : >Thanks Jean-Luc! > >Your words seems to contain an interesting truth, but I haven't > managed >to fully understand it (yet). >
To generates the locales, you use something like locale-gen, see
locale-gen (8).
It uses a file named locale.gen (locale.gen (5))
For me, this file looks like:
#-----
[EMAIL PROTECTED] ISO-8859-15
fr_FR.UTF-8 UTF-8
fr_FR ISO-8859-1
#--- EOF locale.gen
If it contains only fr_FR.UTF-8 UTF-8 I don't have the French language.
With the other entries, it works.
On my system, the locale command says:
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC=C
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_PAPER="fr_FR.UTF-8"
LC_NAME="fr_FR.UTF-8"
LC_ADDRESS="fr_FR.UTF-8"
LC_TELEPHONE="fr_FR.UTF-8"
LC_MEASUREMENT="fr_FR.UTF-8"
LC_IDENTIFICATION="fr_FR.UTF-8"
LC_ALL=
You can see that in ./hvirtual/cinelerra/main.C
// detect an UTF-8 locale and try to use a non-Unicode locale instead
// <---Beginning of dirty hack
// This hack will be removed as soon as Cinelerra is UTF-8 compliant
char *s, *language;
// Query user locale
if ((s = getenv("LC_ALL")) ||
(s = getenv("LC_MESSAGES")) ||
(s = getenv("LC_CTYPE")) ||
(s = getenv ("LANG")))
{
// Test if user locale is set to Unicode
if (strstr(s, ".UTF-8"))
{
// extract language from [EMAIL PROTECTED]
language = strtok (s, ".@");
// set language as the default locale
setenv("LANG", language, 1);
}
}
BUT: I have not tested again all the combination now (I'm leaving for
holidays this evening ;) )
All I can say now, is that with this configuration, I've the French
locale :)
Regards
Jean-Luc
pgpNmlPzVHneK.pgp
Description: PGP signature
