-
Notifications
You must be signed in to change notification settings - Fork 30k
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
node -p process.verions display issue on Windows Cmd #27819
Comments
Can reproduce for v12.3.0 on Windows 7 x64 with cmd.exe. Output in the REPL is OK. |
12.2.0 also fails but 12.1.0 is okay.
|
I had a look at the changelog and I can't find anything obvious. Could someone verify that c2a03d58c3 has no impact? It seems the only entry that might have caused this? Otherwise it's probably best to bisected the commit. |
Latest nightly from master also fails:
|
Reverting 2b24ffa on master restores the expected behaviour. I'll open a revert PR. |
This reverts commit 2b24ffa. Fixes: nodejs#27819
PR: #27823 |
Can someone check if |
Do you actually see colors in the original version of |
Thanks. It seems we have to use |
That is exactly what is happening, ANSI codes are emulated on Windows with WinApi calls. |
ANSI sequences are emulated on Windows, so use `console.log()` for TTY's on Windows instead of directly writing to the filedescriptor. Fixes: nodejs#27819
I've submitted an alternative to the full revert that falls back to |
This reverts commit 2b24ffa. Fixes: #27819 PR-URL: #27823 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Rich Trott <rtrott@gmail.com>
{
node: �[32m'12.3.0'�[39m,
v8: �[32m'7.4.288.27-node.17'�[39m,
uv: �[32m'1.28.0'�[39m,
zlib: �[32m'1.2.11'�[39m,
brotli: �[32m'1.0.7'�[39m,
ares: �[32m'1.15.0'�[39m,
modules: �[32m'72'�[39m,
nghttp2: �[32m'1.38.0'�[39m,
napi: �[32m'4'�[39m,
llhttp: �[32m'1.1.3'�[39m,
http_parser: �[32m'2.8.0'�[39m,
openssl: �[32m'1.1.1b'�[39m,
cldr: �[32m'35.1'�[39m,
icu: �[32m'64.2'�[39m,
tz: �[32m'2019a'�[39m,
unicode: �[32m'12.1'�[39m
}
The text was updated successfully, but these errors were encountered: