Skip to content

[Console] Fix Windows code page support #41174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2021
Merged

Conversation

orkan
Copy link
Contributor

@orkan orkan commented May 11, 2021

My previous PR #41113 was corrected by @nicolas-grekas on 3bac7fe. He introduced logical changes in the code which resulted in incorrect behaviour.
The basic idea was to restore the I/O codepage as soon as you get console input. And you have to do this even if fgets() returns false, because otherwise you'll leave the changed codepage for the rest of the script execution - and that's bad!

@nicolas-grekas
Copy link
Member

Thank you @orkan.

@nicolas-grekas nicolas-grekas merged commit 2289c32 into symfony:5.2 May 11, 2021
This was referenced May 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants