[vlc-devel] commit: Add some fallback for language we have a translation ( Christophe Mutricy )

jpd at videolan.org jpd at videolan.org
Tue Sep 8 10:58:29 CEST 2009

On Mon, Sep 07, 2009 at 10:40:53PM +0200, git version control wrote:
> vlc | branch: master | Christophe Mutricy <xtophe at videolan.org>
>      /* Arabic (ISO-8859-6) */
> -    if (!locale_match ("ar", locale))
> +    static const char arabic[] = "ar" "ckb" "fa";
> +    if (!locale_match (arabic, locale))

This'll end up with arabic[]=="arckbfa" and I wonder just how locale_match
knows which languages have two letters and which have three. That is, this
looks like data dependent ambiguities.

More information about the vlc-devel mailing list