On a Windows host whose ANSI code page is not UTF-8 (1251 on a Russian
install), run_guest_scene.py prints the "could not launch" line with the
localized [WinError 216] text in that code page. The test decoded the
child's output as strict UTF-8, so subprocess.run left result.stdout as
None and the next line failed with a TypeError before any real assertion
ran. Decode with errors="replace", as the output-directory case in the
same file already does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runner resolves --out (run_guest_scene.py:355) and prints the physical
report path; the two encoding subtests compared the tempfile spelling. On
Windows that is the 8.3 name (RUNNER~1) against the expanded runneradmin, two
of the three failures the check job reported in this file; on macOS the
unresolved /var spelling only matched as the tail of /private/var.
run_guest_scene.py resolves --loader, --guest, --shaders and --out before it
starts (line 348), so the run record holds the physical path. tempfile gives
/var/folders/... on macOS, a symlink to /private/var/folders/..., and the
launch-failure test compared the record with the unresolved spelling.
FIocker reported that a successful scene run under a CJK output path raised UnicodeEncodeError while printing report.json to a cp1252 pipe. Keep the stream encoding and escape only characters it cannot represent, including in failure diagnostics.
Reported-by: @FIocker (PR #3986, issuecomment-7087348910)