Skip to content

Commit 55d0702

Browse files
Merge branch '3.4' into 4.4
* 3.4: [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 [Console] Fixes question input encoding on Windows
2 parents 9f9ab1e + afc7189 commit 55d0702

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
@@ -108,6 +108,11 @@ private function doAsk(OutputInterface $output, Question $question)
108108
$inputStream = $this->inputStream ?: STDIN;
109109
$autocomplete = $question->getAutocompleterCallback();
110110

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

0 commit comments

Comments
 (0)