Skip to content

Tests that call more fail in Windows with Unicode shell codepage #11469

Closed
@vsemozhetbyt

Description

@vsemozhetbyt
  • Version: possibly all
  • Platform: Windows 7 x64
  • Subsystem: test, child_process

test\parallel\test-child-process-stdin.js uses more command and does not expect any error messages in the stderr (see common.mustNotCall()).

However, some core Windows shell commands work wrong with Unicode shell codepage. See this answer.

To check more command:

chcp 65001 && more
Active code page: 65001
Not enough memory.

chcp 1252 && more
Active code page: 1252
[reading from stdio]

To check test\parallel\test-child-process-stdin.js pass:

chcp 65001 && node test\parallel\test-child-process-stdin.js
Active code page: 65001
... AssertionError: function should not have been called ...

chcp 1252 && node test\parallel\test-child-process-stdin.js
Active code page: 1252
stdout: hello world

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to the tests.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions