The STDOUT has to be binary mode for Windows Perl not to convert '\n' to '\r\n'. "use CGI" automatically does it. Add "binmode STDOUT" for other Perl CGI scripts.
Pull request: https://github.com/WebKit/WebKit/pull/19577
Do I need to binmode STDIN too? CGI.pm sets binmode to STDIN too. Should I "use CGI"? https://github.com/leejo/CGI.pm/blob/46617ba3049b53a1ac0c15d6fc6c49b2ee26f33d/lib/CGI.pm#L214-L215
Committed 269838@main (5a716d72adac): <https://commits.webkit.org/269838@main> Reviewed commits have been landed. Closing PR #19577 and removing active labels.
<rdar://problem/117568744>