[Bug 275364] Mk/Scripts/dialog4ports.sh broken for non-UTF8 locales
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 275364] Mk/Scripts/dialog4ports.sh broken for non-UTF8 locales"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Jan 2026 21:55:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275364
--- Comment #3 from Joshua Kinard <freebsd@kumba.dev> ---
(In reply to Craig Leres from comment #2)
Same here, just with PuTTY on a Win 10-based system. I've been using this
patch in a local copy of this port to make things work:
> --- portconfig.c.orig 2025-02-24 17:54:19 UTC
> +++ portconfig.c
> @@ -198,12 +198,6 @@ int main(int argc, char *argv[])
> unsigned int i, j, ngroups;
> char *env, *helpfile, *text;
>
> - /* Experimental new env to switch locale: UTF-8 or C */
> - if ((env = getenv("PORTCONFIG_CLOCALE")) == NULL)
> - setlocale(LC_ALL, "");
> - else if (strcasecmp(env, "Y") != 0 && strcasecmp(env, "YES") != 0)
> - setlocale(LC_ALL, "");
> -
> bsddialog_initconf(&conf);
> conf.menu.align_left = true;
> conf.key.enable_esc = true;
--
You are receiving this mail because:
You are on the CC list for the bug.