[Ffmpeg-devel] AVOptions

Gary Corcoran gcorcoran
Tue Sep 13 23:01:16 CEST 2005


Rich Felker wrote:
> On Tue, Sep 13, 2005 at 03:20:10PM -0300, Dario Andrade wrote:
> 
>>>The point was that you can't use strcasecmp, because setlocale can
>>>
>>>>break it.
>>>
>>>It could, but AFAIK all commonly used encodings are ASCII compatible.
>>>Things like UTF-16 are rarely used.
>>
>>UTF8 is becoming pretty popular in Java.
>>But sincerely, I don?t undertand why option keys can't just be enforced as
>>ascii 7-bit clean?
> 
> 
> They can, and are. The problem is that you just can't use strcasecmp
> for case-insensitive comparisons, because it will compare the strings
> in the current locale.

But as long as we're only talking about option strings that are
within the first 128 characters (e.g. IRA a-z and A-Z), then there
is no problem, is there?

Gary





More information about the ffmpeg-devel mailing list