[RFC] Set the default locale to en_US.UTF-8

Baptiste Daroussin bapt at freebsd.org
Sun Jan 25 18:44:27 UTC 2015


On Sun, Jan 25, 2015 at 09:36:48AM -0800, Simon J. Gerraty wrote:
> Baptiste Daroussin <bapt at freebsd.org> wrote:
> > Given that vt handles properly unicode inputs. I would like to propose that now
> > we set the defaults locales on HEAD to en_US.UTF-8.
> 
> We've recently been inflicted with more Linux machines at work
> and these have en_US.UTF-8 as default locale.
> 
> I run emacs -nw inside screen inside xterm (so I can easily re-attach
> from anywhere).  I traced the fact that meta key didn't work to the
> locale setting.  Forcing it to 'C' made everything work as it should.
> 
> In the past I've found (on some systems at least) that locale's other
> than 'C' break shell scripts - because character classes no longer
> match.  I assume this is due to different collating rules.
> 
> Thus my FAQ entry on how to survive with these machines mentions that
> Setting ``LANG=C`` and ``LC_ALL=C`` fixes lots of problems.
> 
> So my vote would be "no" ;-)
> 

The collation change is fixed by my proposal: collation remain set to C
Concerning vi in head it does support correctly unicode.
Concerning sed/grep I'm not aware of any problem.

There were to my knowledge 2 issues:
- libedit which is now fixed.
- console which is fixed by the switch to vt

Bapt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20150125/9e55eafb/attachment.sig>


More information about the freebsd-arch mailing list