Closed kreuzberger closed 1 year ago
Thanks for the bug report. :+1:
I agree we should always use utf8 to open/write all files.
But this should be just the default configuration, so the user should be able to overwrite this by a config_parameter like test_report_import_encoding
.
Looks to be solved?
Yes, solved. Thanks for the hint :+1:
Writing the test_report_template for the report works on linux but seems broken on windows for Latin1 encodings.
My test_report_template is written in German with German Umlaute and the file encoding is utf-8.
In the file sphinxcontrib/test_reports/directives/test_report.py this is opened without encoding information and i assume it opens it with system encoding (utf8 on linux, latin1 or window cpxxxx). This breaks the handling on both platforms.
Best would be to open the file ALWAYS with utf8 encoding or make in a configuration value.