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) {
If I make this change and run VDR with
export LANG=de_DE.iso8859-15
I get a NULL pointer from the setlocale(LC_CTYPE, "") call. Only with
export LANG=de_DE.iso8859-1
do I get a non-NULL result. Am I missing something here?
Klaus