We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
6.2.8
echo can print unicode text to windows console, but symfony/console not.
echo
I found a place where the windows console gets corrupted and it can no longer display unicode text. Please fix it.
symfony\console\Terminal.php:
private static function initDimensions() { echo "before initDimensions() - йфяЙФЯёЁ üÜiİöÖğĞıIəƏçÇşŞ" . PHP_EOL; if ('\\' === \DIRECTORY_SEPARATOR) { if (preg_match('/^(\d+)x(\d+)(?: \((\d+)x(\d+)\))?$/', trim(getenv('ANSICON')), $matches)) { // extract [w, H] from "wxh (WxH)" // or [w, h] from "wxh" self::$width = (int) $matches[1]; self::$height = isset($matches[4]) ? (int) $matches[4] : (int) $matches[2]; } elseif (!self::hasVt100Support() && self::hasSttyAvailable()) { // only use stty on Windows if the terminal does not support vt100 (e.g. Windows 7 + git-bash) // testing for stty in a Windows 10 vt100-enabled console will implicitly disable vt100 support on STDOUT self::initDimensionsUsingStty(); } elseif (null !== $dimensions = self::getConsoleMode()) { // extract [w, h] from "wxh" self::$width = (int) $dimensions[0]; self::$height = (int) $dimensions[1]; } } else { self::initDimensionsUsingStty(); } echo "after initDimensions() -- йфяЙФЯёЁ üÜiİöÖğĞıIəƏçÇşŞ" . PHP_EOL; }
No response
The text was updated successfully, but these errors were encountered:
which OS are you using (to know which branch of this code is actually executed) ?
Sorry, something went wrong.
Windows 10
I cannot reproduce this bug, On git-bash using windows 10:
And on CMD:
@maxbeckers The broken encoding bug has been fixed in 6.2.x-dev (see #49987). Try <=6.2.8
Ah, thanks ... then this issue can be closed IMHO. //cc @nicolas-grekas
No branches or pull requests
Symfony version(s) affected
6.2.8
Description
echo
can print unicode text to windows console, but symfony/console not.How to reproduce
I found a place where the windows console gets corrupted and it can no longer display unicode text. Please fix it.
symfony\console\Terminal.php:
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: