Locally, I used printf "\\xa9" to generate a non-utf8 character, and I tested with sources in /tmp/portage�-not-utf8 and with TMPDIR=/tmp/tmpdir�-not-utf8 (I can copy and paste the non-UTF8 character in xfce4-terminal). I use these these steps to run the tests: > $ git worktree add /tmp/portage�-not-utf8 HEAD > $ cd /tmp/portage�-not-utf8 HEAD > $ export TMPDIR=/tmp/tmpdir�-not-utf8 > $ lib/portage/tests/runTests.py
Created attachment 702270 [details] Log of test failures with current master branch at e974bf337cc427283be3e10e986151cba281a023