Skip to content

Read the generated module as UTF-8 in three Python test drivers #8976

Closed

Description

@kz930

Task Summary

The Python drivers in MachineLearningScorerOpDescSpec, FilledAreaPlotOpDescSpec and TreePlotOpDescSpec read the generated module with open(sys.argv[1]), so Python decodes it with the locale's encoding, which is cp1252 on Windows. The spec writes the file as UTF-8. The modules these tests generate are ASCII today, so nothing fails yet, but a non-ASCII character in a generated module would make these tests fail on Windows only. The drivers that read Plotly HTML already pass encoding="utf-8"; these three should too.

Task Type

  • Refactor / Cleanup
  • DevOps / Deployment / CI
  • Testing / QA
  • Documentation
  • Performance
  • Other

Activity

  1. added theissue type on Oct 13, 2026
  2. Matthew-DWM commented on Oct 14, 2026

    @Matthew-DWM

    /take

  3. added a commit that references this issue on Oct 14, 2026
    53a273e
  4. Matthew-DWM commented on Oct 14, 2026

    @Matthew-DWM

    /untake

  5. added a commit that references this issue on Oct 24, 2026
    d1d2885
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions