Skip to content

Decode Vex and wavec smoke-test output independently of the Windows locale #170

Closed

Description

@LunaStev

Audited against merged master 13289d7a74ad45561554bbb6673a189dbb192a27 (PR #161).

Problem and reproduction

The smoke helpers capture subprocess output with text=True and no encoding. Python therefore uses the local encoding, which need not match UTF-8 emitted by Vex/wavec.

Reproduced on Linux by mocking subprocess._text_encoding() to cp1252 and running a child that writes UTF-8 bytes for 각 (ea b0 81) through the native smoke run() helper. It raises UnicodeDecodeError before the smoke can inspect the child's result. This models a non-UTF-8 Windows locale; it is not a native Windows execution result.

Scope and acceptance

  • Explicitly decode known Vex/wavec UTF-8 output in both smoke suites.
  • Add a small offline regression using non-ASCII output with a mocked legacy locale.
  • Keep strict handling for JSON consumed as machine data.
  • Do not blindly reinterpret Visual Studio/cmd environment output as UTF-8: preserve the separate environment-discovery contract and distinguish foreign tool diagnostics where needed.
  • Existing ASCII smoke assertions must keep working.

No production CLI or new CI matrix is needed for this test-harness fix.

Starting points

This is a bounded follow-up suitable for a first contribution; no broader feature redesign is requested.

Activity

  1. added
    bug
    good first issue
    ci
    cross-platform
    on Oct 18, 2026
  2. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcicross-platformgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions