Skip to content

tests: Tests could return UNRESOLVED on non-English Windows set to non UTF-8 encoding #981

@statementreply

Description

@statementreply

Describe the bug

I got the following output when running stl-lit.py

stl-lit.py: G:\STL\tests\utils\stl\test\format.py:225: warning: 'utf-8' codec can't decode byte 0xc3 in position 14: invalid continuation byte
UNRESOLVED: std :: tests/GH_000935_complex_sqrt:23 (17 of 29)

STL/tests/utils/stl/util.py

Lines 120 to 122 in 5be7d49

# Ensure the resulting output is always of string type.
out = out.decode()
err = err.decode()

out.decode() fails because its encoding isn't UTF-8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedSomething works now, yay!testRelated to test code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions