[FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options
Martin Storsjö
martin at martin.st
Fri Feb 10 00:14:49 EET 2023
On Thu, 9 Feb 2023, Ziemowit Laski wrote:
>> These changes seem fine, but you're apparently not touching the case at
>> the top, used for --version, where it is calling 'rc.exe /?'. For me, this
>
> That's an interesting point. I guess MinGW is "smart enough" not to rewrite
> "/?" because it doesn't represent a valid path to begin with. I will change
> it to "-?" as you suggest.
Just to clarify some details here - mingw doesn't do any such path
rewriting - that's all msys's doing. Mingw processes themselves are
entirely regular win32 processes which know nothing about unix style
paths; it's msys2 which does the whole unix-style paths and which
automatically tries to rewrite command line arguments as if they were
paths, with some level of heuristics.
Git bash also uses the msys2 layer, but apparently it uses a different
version of the msys2 runtime, since it didn't seem to fail when executing
"rc.exe /?", while the current msys2 version fails.
None of that has anything to do with mingw.
// Martin
More information about the ffmpeg-devel
mailing list