[vlc-devel] commit: Add some fallback for language we have a translation ( Christophe Mutricy )
Rémi Denis-Courmont
remi at remlab.net
Tue Sep 8 11:00:45 CEST 2009
On Tue, 8 Sep 2009 10:58:29 +0200, jpd at videolan.org wrote:
> 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.
It simply does not. locale_match() only supports two letters locales.
--
Rémi Denis-Courmont
More information about the vlc-devel
mailing list