8000 Restoring the ability to output unicode text to the Win10 console · symfony/symfony@9fb3443 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9fb3443

Browse files
Restoring the ability to output unicode text to the Win10 console
Restoring the ability to output unicode text to the Win10 console after corrupting the console on line 224
1 parent 1f4a1bc commit 9fb3443

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Console/Terminal.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,10 @@ private static function readFromProcess(string|array $command): ?string
226226
fclose($pipes[2]);
227227
proc_close($process);
228228

229+
if (\function_exists('sapi_windows_cp_set')) {
230+
sapi_windows_cp_set(65001);
231+
}
232+
229233
return $info;
230234
}
231235
}

0 commit comments

Comments
 (0)
0