[FFmpeg-devel] [PATCH] Set systems that should support DOS paths in configure

Reimar Döffinger Reimar.Doeffinger
Tue Oct 7 19:15:25 CEST 2008

On Tue, Oct 07, 2008 at 01:45:56PM -0300, Ramiro Polla wrote:
> New patch attached. It has lots of parentheses to silence gcc
> warnings. Are they all necessary?

Well, you could use
strchr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", path[0]);
and they are not necessary :-P.
I doubt it is such a good idea.
And no, the innermost ones are not necessary.

> Lots of places on MSDN specify only A-Z case insensitive. But it would
> be funny to mount the ?:\ drive...
> Is there anyone with such a locale that can confirm whether it's possible?

Well, ? at least should be in the US codepage, too, I doubt such core
stuff changes with locale.
I am also sure you would have some interesting issues since I think
there are still some bitmasks used for that stuff.
Anyway I tested with a German Win98SE with these results:
all result in "Ung?ltige Laufwerksangabe" (Invalid drive), so
command.com only checks for [1] == ':'.
Explorer says for "?:":
"file:///%E4:/" wurde nicht gefunden
(was not found)
whereas for "z:" it says:
Auf Z:\ konnte nicht zugegriffen werden
(could not access)

Lastly, "subst ?: c:\" says
Ung?ltiger Parameter -  ?:
(Invalid Parameter)

So what can we conclude?
1) ? does not work as drive letter
2) as usual, Microsoft duplicated the check in about a thousand places
and implemented it slightly differently each time.

Reimar D?ffinger

More information about the ffmpeg-devel mailing list