[Bug 295945] Set the ports tree locale to C.UTF-8 in Mk/bsd.port.mk and retire USE_LOCALE

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Jun 2026 15:02:35 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295945

--- Comment #6 from Robert Clausecker <fuz@FreeBSD.org> ---
(In reply to Tijl Coosemans from comment #5)

Please understand that the string "Jörg Schilling" exists as a test case for a
planned localisation effort.  So removing gettext() in favour of an iconv()
call misses the point of why it's there.  The locale of the entire project is
ISO 8859-1 and cannot be changed easily due to the project doing direct string
manipulation all over the place.

Just changing the translation strings to UTF-8 while leaving the rest in ISO
8859-1 is a recipe for disaster, as we then get mixed-encoding source files.

> Gettext treats C.<encoding> as untranslated now.

Yeah, that kind of sucks.  I'm not sure what the maintainer was thinking there,
as this also breaks cases where projects use strings that shouldn't go directly
to the user for the key (e.g. to disambiguate messages that are equal in en.US
but distinct in other languages).

I guess I'll have to talk to the gettext maintainers once again.

In any case, please understand my objection as not being about this project in
particular, but about it being a really bad idea to remove locale support just
because you find it fashionable to do so.

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