Skip to content

Commit 2226c68

Browse files
Merge branch '5.0' into 5.1
* 5.0: minor #37121 [Contracts] Add missing "extra.thanks" entries in composer.json (nicolas-grekas) [Process] Fix Permission Denied error when writing sf_proc_00 lock files on Windows fix handling null as empty data No need to create an issue when creating a PR Use ">=" for the "php" requirement [HttpClient] Fix promise behavior in HttplugClient [Console] Fixes question input encoding on Windows
2 parents 397d1d7 + 9579407 commit 2226c68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Helper/QuestionHelper.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ private function doAsk(OutputInterface $output, Question $question)
110110
$inputStream = $this->inputStream ?: STDIN;
111111
$autocomplete = $question->getAutocompleterCallback();
112112

113+
if (\function_exists('sapi_windows_cp_set')) {
114+
// Codepage used by cmd.exe on Windows to allow special characters (éàüñ).
115+
sapi_windows_cp_set(1252);
116+
}
117+
113118
if (null === $autocomplete || !self::$stty || !Terminal::hasSttyAvailable()) {
114119
$ret = false;
115120
if ($question->isHidden()) {

0 commit comments

Comments
 (0)