Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2017 14:05:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 215882] [exp-run] always set LANG=C and LC_ALL=C
Message-ID:  <bug-215882-13-5xJKPL5XNo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-215882-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-215882-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215882

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

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 !=3D 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?

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215882-13-5xJKPL5XNo>