Skip to content

lib: Attempted to fix issue #57780, child_process.js #57956

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MaxwellVanHoeij
Copy link

@MaxwellVanHoeij MaxwellVanHoeij commented Apr 21, 2025

Fixes: #57780

@nodejs-github-bot nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run. labels Apr 21, 2025
@MaxwellVanHoeij MaxwellVanHoeij changed the title Max vh, Attempted to fix issue #57780 lib: Attempted to fix issue #57780, child_process.js Apr 21, 2025
Comment on lines +1 to +5
{
"dependencies": {
"iconv-lite": "^0.6.3"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you can imagine, we're not going to want to have this file

Comment on lines +23 to +24
} else {
// macOS: Test UTF-8 in bash
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are many more OSes which are neither Windows nor macOS

Comment on lines +102 to +103
// Enhanced ChildProcess class with Windows encoding support
class ChildProcess extends OriginalChildProcess {
Copy link
Contributor

@aduh95 aduh95 Apr 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Introducing a class just to "highjack" spawnings of cmd.exe on Windows doesn't feel right – it's unclear whether we'd want to fix #57780 in the first place tbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
child_process Issues and PRs related to the child_process subsystem. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UTF8 characters show incorrectly after win cmd chcp 65001
3 participants