Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 785460

Summary: sys-apps/portage: unit test failures and errors when source directory and TMPDIR contain non-UTF8 characters
Product: Portage Development Reporter: Zac Medico <zmedico>
Component: CoreAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement CC: marco
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Log of test failures with current master branch at e974bf337cc427283be3e10e986151cba281a023

Description Zac Medico gentoo-dev 2021-04-24 21:38:04 UTC
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
Comment 1 Zac Medico gentoo-dev 2021-04-24 21:41:05 UTC
Created attachment 702270 [details]
Log of test failures with current master branch at e974bf337cc427283be3e10e986151cba281a023