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
VDR User wrote:
From man 7 locale:
In other words, the locale system can be set in environment by three different ways, by setting LANG (lowest precedence), by setting specific language aspects (LC_CTYPE describes just character sets, not sorting, numeric notation, date notation etc), or by setting LC_ALL (highest precedence).
Even if LANG is set, it may not be valid, because other settings can override it. And not on all systems LANG is used to set the locale.
Cheers,
Udo
On 05/01/07 17:12, Matthias Schwarzott wrote:
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
Klaus Schmidinger wrote:
Do you have a de_DE.iso8859-15 installed? It's called de_DE@euro here (yes, that naming is "a bit" strange).
You can check with "locale -a | grep de" to find the installed locales for "de". If no suitable locale is there, you can use locale-gen (at least on Debian and Gentoo) or localedef to install the missing locale.
Regards... Michael
On 05/01/07 17:12, Matthias Schwarzott wrote:
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