Skip to content

Commit 8b8f25e

Browse files
committed
Normalize line endings
not sure if really needed
1 parent 255fab4 commit 8b8f25e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Context/Process.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ public function run() {
9999
$stderr = file_get_contents( $stderr_file );
100100
unlink( $stdout_file );
101101
unlink( $stderr_file );
102+
103+
// Normalize line endings.
104+
$stdout = str_replace( "\r\n", "\n", $stdout );
105+
$stderr = str_replace( "\r\n", "\n", $stderr );
102106
}
103107

104108
$run_time = microtime( true ) - $start_time;

0 commit comments

Comments
 (0)