Thanks Jean-Luc!

Interesting directions. They will keep me busy for a while.

Buone vacanze :-)
Raffaella

On Fri, 2007-07-20 at 16:32 +0200, Jean-Luc Coulon (f5ibh) wrote: 
> To generates the locales, you use something like locale-gen, see 
> locale-gen (8).
> It uses a file named locale.gen (locale.gen (5))

> 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);
>         }
>     }



_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to