LanguageCode

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

 



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


[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