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

Víctor Paesa wzrlpy
Tue Oct 7 20:01:15 CEST 2008


Hi,

AUTHOR said Reimar D?ffinger
> 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:
> Commandline:
> z:
> ?:
> !:
> 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.

I tried this for fun on WinXP SP3 (Spanish variety):

C:\ subst ?: c:\caca

C:\ ?:

?:\>dir
 El volumen de la unidad ? es BOOT
 El n?mero de serie del volumen es: 7C1E-F5FC

 Directorio de ?:\

07/10/2008  19:54    <DIR>          .
07/10/2008  19:54    <DIR>          ..
07/10/2008  19:54                 0 caca.txt
               1 archivos              0 bytes
               2 dirs   3.519.590.400 bytes libres

So they are partially/inconsistently supported, because my Windows
Explorer does not show the ?: drive.

And now I'm going to delete that ?: unit, before Windows decides
to die in mysterious ways ;-)

Regards,
V?ctor






More information about the ffmpeg-devel mailing list