The following commit broke dialog-based ports configuration for non-UTF8 locales: https://cgit.freebsd.org/ports/commit/Mk/Scripts/dialog4ports.sh?id=9fee35128080f036c7b318cbbe20067ccca409db Now it shows garbled output on 8bit terminals due to raw UTF-8 sequences bein drawn. Backout of this commit unbreaks output. Please consider more correct solution.