[Bug 275364] Mk/Scripts/dialog4ports.sh broken for non-UTF8 locales

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 12 Jan 2026 17:46:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275364

--- Comment #12 from Craig Leres <leres@freebsd.org> ---
Created attachment 267087
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=267087&action=edit
screenshot of securecrt under windows 10

(In reply to Joshua Kinard from comment #5)
I made a screenshot of securecrt last night but forgot to upload it.

The diff between 0.6.1 and 0.6.2 shows the "Experimental new env to switch
locale: UTF-8 or C" change.

I did some more testing with securecrt.

I always see junk with:

    poudriere options -c -p current-patched -n www/firefox

Inside screen I see junk with:

    cd /usr/ports/www/firefox && make config

(TERM set to screen)

If I add:

    PORTCONFIG_CLOCALE=YES
    .export PORTCONFIG_CLOCALE

to make.conf then "make config" works normally when not inside screen.

Ah. /usr/bin/locale reports "C.UTF-8" in sessions that "work" and "C" in
sessions that do not. I could not figure out how to change things so that
things work inside screen (setting LANG to "C.UTF-8" changes what locale
reports but has no other effect I can see).

-- 
You are receiving this mail because:
You are on the CC list for the bug.