[Bug 215882] [exp-run] always set LANG=C and LC_ALL=C

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 16 14:05:32 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215882

--- Comment #3 from Tijl Coosemans <tijl at FreeBSD.org> ---
(In reply to Gerald Pfeifer from comment #2)
Yes we want the other LC_* too.  Bug 215792 requires LC_NUMERIC=C.  Use of
character classes with tr(1) requires LC_CTYPE=C.  Consistent output from
date(1) requires LC_TIME=C.  These are all handled at once by setting LC_ALL=C. 

LANG is used by setlocale(3) as default value for LC_* variables that aren't
set, so normally it isn't used when LC_ALL is set, but I've seen patches in the
ports tree that show there's code out there that looks at LANG directly so it's
safer to set it as well.

I also think we need to set these globally (with .export) at the beginning of
bsd.port.mk to rule out any locale problems in the ports tree itself.  The only
commands not captured by this are != assignments before any inclusion of
bsd.port.*mk.  I now see I forgot about bsd.port.subdir.mk.  Maybe LANG/LC_ALL
should be set there as well?

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


More information about the freebsd-ports-bugs mailing list