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 / Tests | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Fujii Hironori
Pull request: https://github.com/WebKit/WebKit/pull/19577
Fujii Hironori
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
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
<rdar://problem/117568744>