News for hackers. Stuff that matters.
Re:Where do argc and argv come from? by ChrisSD on Monday August 10, 2020 @03:42PM (#24113218)
I'd also add that CommandLineToArgvW doesn't do exactly the same thing that the C runtime does to parse arguments. They used to be the same but the C runtime was tweaked in 2008 whereas CommandLineToArgvW was kept the same for backwards compatibility. See http://daviddeley.com/autohotkey/parameters/parameters.htm#W...
Re:Where do argc and argv come from? by gpvos on Tuesday August 11, 2020 @02:51AM (#24117813)
Re:Where do argc and argv come from? by Varriount on Monday August 10, 2020 @08:08PM (#24115756)
Huh. Wouldn't this have caused inter-operability problems for programs that spawn other processes?
Re:Where do argc and argv come from? by ChrisSD on Monday August 10, 2020 @08:22PM (#24115865)
Presumably they would have tested extensively for regressions. But I'm not sure what would break that wasn't already broken. It was an obscure undocumented case that was not intuitive.