Skip to content

Commit 4dfad11

Browse files
committed
Yet another approach to unicode on windows
1 parent ab15414 commit 4dfad11

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mathics/docpipeline.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,13 @@ def fail(why):
8888
f"""{sep}Test failed: {section} in {part} / {chapter}
8989
{part}
9090
n{why}
91-
"""
92-
)
91+
""".encode("utf-8"))
9392
return False
9493

9594
if not quiet:
9695
if section:
97-
print(f"{stars} {tests.chapter} / {section} {stars}")
98-
print(f"{index:4d} ({subindex:2d}): TEST {test}")
96+
print(f"{stars} {tests.chapter} / {section} {stars}".encode("utf-8"))
97+
print(f"{index:4d} ({subindex:2d}): TEST {test}".encode("utf-8"))
9998

10099
feeder = MathicsSingleLineFeeder(test, "<test>")
101100
evaluation = Evaluation(definitions, catch_interrupt=False, output=TestOutput())

0 commit comments

Comments
 (0)