[vdr] LanguageCode

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sat Oct 7 14:17:19 CEST 2006


Boguslaw Juza wrote:

> There are channels (mostly audio-only) witch spaces in LanguageCode.
> For example:
> 
> XtraMusicPop:11278:v:S13.0E:27500:0:611=A 1,612=A 2,613=A 3,614=A 
> 4,615=A 5,616=A 6,617=A 7,618=A 8,619=A 9,620=A10:0:100:13042:318:400:0
> 
> so I ask for little patch in i18n.c:I18nNormalizeLanguageCode:
> 
> -  if (Code[0] && !isalnum(Code[0]) || Code[1] && !isalnum(Code[1]) ...
> +  if ( (Code[0] && !(isalnum(Code[0]) || Code[0]==' ')) ||
> +       (Code[1] && !(isalnum(Code[1]) || Code[1]==' ')) ||
> +       (Code[2] && !(isalnum(Code[2]) || Code[2]==' ')) ) {

Maybe it would be even better to just replace isalnum() with
isprint(). That would allow all printable characters, plus the
blank.

Can you please try if that works for you?

Klaus



More information about the vdr mailing list