Bug 263701

Summary: STDIN and STDOUT of Perl CGI scripts should be binary mode for Windows Perl
Product: WebKit Reporter: Fujii Hironori <fujii.hironori>
Component: Tools / TestsAssignee: Fujii Hironori <fujii.hironori>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 264237    

Fujii Hironori
Reported 2023-10-25 18:20:07 PDT
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.
Attachments
Fujii Hironori
Comment 1 2023-10-25 18:29:41 PDT
Fujii Hironori
Comment 2 2023-10-25 19:20:07 PDT
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
EWS
Comment 3 2023-10-26 22:30:56 PDT
Committed 269838@main (5a716d72adac): <https://commits.webkit.org/269838@main> Reviewed commits have been landed. Closing PR #19577 and removing active labels.
Radar WebKit Bug Importer
Comment 4 2023-10-26 22:31:15 PDT
Note You need to log in before you can comment on or make changes to this bug.