3 ms·
Cygwin evidently contains its own versions of certain Win32 functions, like in this source file: https://github.com/cygwin/cygwin/blob/main/winsup/cygwin/kerne
by kazinator 2y ago
Cygwin evidently contains its own versions of certain Win32 functions, like in this source file:
https://github.com/cygwin/cygwin/blob/main/winsup/cygwin/kernel32.cc https://github.com/cygwin/cygwin/blob/main/winsup/cygwin/ker...
If we jump to the very bottom, we see that GetCommandLineA is one of the functions implemented in this file. It uses something called RtlUnicodeStringToAnsiString.
Microsoft declares that one in <wdm.h> and places it in NTOSKRNL.EXE.
That very function is mentioned in the submitted article as having the problem!
If Cygwin handles arguments through this function in preparation for main(), and it's the Microsoft one, it has the issue.