Skip to content

Outputs are not treated as UTF-8 #162

@Baltoli

Description

@Baltoli

I see that #158 allows inputs to be treated as UTF-8. When a test in my suite fails on a line including a unicode character, filecheck attempts to print it (here). This causes an error:

Traceback (most recent call last):
  File "/home/user/.local/bin/filecheck", line 8, in <module>
    sys.exit(main())
  File "/home/user/.local/lib/python3.6/site-packages/filecheck/FileCheck.py", line 648, in main
    print(last_read_line)
UnicodeEncodeError: 'ascii' codec can't encode character '\xa7' in position 17: ordinal not in range(128)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions