Skip to content

-utf8 option does not work #262

@espresso3389

Description

@espresso3389

With vswhere 3.0.1+e2e4e03c65 bundled with VS2022 17.1.6, -utf8 option does not work correctly; even with the option, the command seems to run with the machine's locale. The code described here throws exception during parsing the output:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at C:\Work\decode_test\test.js:3:24
    at exithandler (node:child_process:395:5)
    at ChildProcess.errorhandler (node:child_process:407:5)
    at ChildProcess.emit (node:events:527:28)
    at ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Node.js v18.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions