From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 085284517D for ; Thu, 9 Feb 2023 22:15:03 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 12B7868BDBB; Fri, 10 Feb 2023 00:15:00 +0200 (EET) Received: from mail8.parnet.fi (mail8.parnet.fi [77.234.108.134]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id E945B68BB81 for ; Fri, 10 Feb 2023 00:14:52 +0200 (EET) Received: from mail9.parnet.fi (mail9.parnet.fi [77.234.108.21]) by mail8.parnet.fi with ESMTP id 319MEoCq010354-319MEoCr010354 for ; Fri, 10 Feb 2023 00:14:50 +0200 Received: from foo.martin.st (host-97-187.parnet.fi [77.234.97.187]) by mail9.parnet.fi (Postfix) with ESMTPS id 48C43A1527 for ; Fri, 10 Feb 2023 00:14:50 +0200 (EET) Date: Fri, 10 Feb 2023 00:14:49 +0200 (EET) From: =?ISO-8859-15?Q?Martin_Storsj=F6?= To: FFmpeg development discussions and patches In-Reply-To: Message-ID: <4ecd356-f04b-afe0-6d17-ef9850d6df2@martin.st> References: <27182552-d0fb-fa0-d15-b969bdd09ada@martin.st> MIME-Version: 1.0 X-FE-Policy-ID: 3:14:2:SYSTEM Subject: Re: [FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: 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 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".