Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Nov 2016 00:12:30 +0100
From:      Mark Martinec <Mark.Martinec+freebsd@ijs.si>
To:        freebsd-stable@freebsd.org
Subject:   Re: Uppercase RE matching problems in FreeBSD 11
Message-ID:  <9972d62886b5651b76aa7f594be5ad19@ijs.si>
In-Reply-To: <DFC60C4E-2116-474F-82DD-DED10518970F@lassitu.de>
References:  <alpine.BSF.2.20.1611051912260.2462@flake.tharned.org> <20161106110729.z2px7mzlhcwxvrvu@ivaldir.etoilebsd.net> <29451103-E8DB-4656-A5BB-AEB924A728D6@lassitu.de> <20161106210628.hg3dcpozfjtuo3nt@ivaldir.etoilebsd.net> <C4BC6673-2E07-45E6-81D6-EB4FF99605A8@lassitu.de> <20161106212729.z2edg44kg7hc4r2z@ivaldir.etoilebsd.net> <DFC60C4E-2116-474F-82DD-DED10518970F@lassitu.de>

index | next in thread | previous in thread | raw e-mail

2016-11-06 22:49, Stefan Bethke wrote:
> So what do I set my LANG and LC variables to?  I do want UTF-8, but I
> do also want my scripts to continue to work.  Clearly, en_US.UTF-8 is
> not what I want.  Is it C.UTF-8?


> Or do I set LANG=en_US.UTF-8 and LC_COLLATE=C?

Yes, that is the safest bet. The LANG sets a default, but the
LC_COLLATE, LC_TIME, LC_NUMERIC and LC_MONETARY should better
be set to "C" to overrule the LANG in their domains.

Leave the LC_ALL undefined or empty, as this one overrules
every other locale setting (unless you really want everything
to be set to "C").

   Mark


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9972d62886b5651b76aa7f594be5ad19>