[vdr] [PATCH] Small change to correctly query the systems charset

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sun Aug 12 15:00:28 CEST 2007


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



More information about the vdr mailing list