numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
197 stars 118 forks source link

Doctests: Force stdin to be decoded as utf8 #1062

Closed Lycanic closed 7 months ago

Lycanic commented 7 months ago

On windows, stdin by default uses a different encoding and cannot detect the arrows used to denote examples. Enforcing utf8 decoding of the buffer enables the tests to correctly interpret the examples.