Re: [PATCH] Small change to correctly query the systems charset

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

 



On 05/01/07 17:12, Matthias Schwarzott wrote:
> Hi there!
> 
> This patch just changes charset querying to not only look at environment 
> variable LANG, but respect all in correct order. So now I can overwrite 
> charset setting with LC_CTYPE and LC_ALL.
> 
> Greetings
> Matthias
> 
> 
> 
> ------------------------------------------------------------------------
> 
> diff -ru vdr-1.5.2-vanilla/vdr.c vdr-1.5.2/vdr.c
> --- vdr-1.5.2-vanilla/vdr.c	2007-05-01 17:04:45.000000000 +0200
> +++ vdr-1.5.2/vdr.c	2007-05-01 17:05:18.000000000 +0200
> @@ -493,7 +493,7 @@
>  
>    // Set the system character table:
>  
> -  char *LangEnv = getenv("LANG");
> +  char *LangEnv = setlocale(LC_CTYPE, "");
>    if (LangEnv) {
>       char *CodeSet = strchr(LangEnv, '.');
>       if (CodeSet) {

It's been a while since this, and there have been some changes
in the meantime.

Can you please check the latest developer version (1.5.7) and
see whether this works correctly now?

Klaus

_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux