mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-07 10:08:50 -05:00
read_source() used open() without an encoding argument. On Windows, the default codec is cp1252, which cannot decode the UTF-8 byte 0x90 (used in em-dash and similar characters present in lab markdown strings). All 33 TestWidgetReturnCompleteness tests failed on Windows with UnicodeDecodeError; passing PYTHONUTF8=1 made them all green. Fix: add encoding="utf-8" to the open() call in read_source().