Skip to content

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

Closed

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.

Activity

  1. added
    test
    help wanted
    on Jul 3, 2020
  2. fsb4000 commented on Feb 11, 2021

    @fsb4000
    Contributor

    If you will enter chcp 1252 then rerun tests and they will run fine.
    the UNRESOLVED disappeared for me...

  3. StephanTLavavej commented on Jul 12, 2021

    @StephanTLavavej
    Member

    Known workarounds: #1906 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedtest

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions