On 2024-11-12 Martin Storsjö wrote: > FYI, see https://github.com/msys2/MINGW-packages/issues/22462 where > someone ran into issues caused by this. > > Also see > https://ffmpeg.org/pipermail/ffmpeg-devel/2024-November/335936.html where > someone else observes other issues related to this. (The description > of the issue seems a bit inaccurate, so I tried to comment on it.)
I understand only now that many apps use main() but ignore argv[] and instead get the args by some other method. I was too focused on porting apps written for POSIX systems. I'm sorry. The _exit(255) trick is clearly not an acceptable default. My patch should be reverted until a better one is made. It might be that all apps that want safe argv[] for main() will need something special on Windows (like setting UTF-8 code page in manifest). Pali's comments made me I wonder if we should wait and see if Microsoft will do something about this issue in 1-2 months. With bad luck even a milder fix might result in unwanted differences in command line handling between MinGW-w64 and MSVC built executables. -- Lasse Collin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
