Re: login.conf --> UTF-8

From: Benjamin Lee <ben_at_b1c1l1.com>
Date: Wed, 2 Apr 2014 12:12:48 -0700
On Wed, 02 Apr 2014 09:53:49 -0700, Sean Bruno <sbruno_at_ignoranthack.me> wrote:
> I'd like to make this change to login.conf for default installs.
> 
> This removes some amount of hackery in the ports system that is working
> around our lack of UTF-8 in the base.
> 
> This should be step 0 in a language agnostic installer project that is
> beyond the scope of making the system more useable.
> 
> 
> --- login.conf	2013-10-21 15:51:14.553992170 -0700
> +++ /etc/login.conf	2014-03-31 09:26:17.588503798 -0700
> _at__at_ -45,7 +45,9 _at__at_
>  	:kqueues=unlimited:\
>  	:priority=0:\
>  	:ignoretime_at_:\
> -	:umask=022:
> +	:umask=022:\
> +	:lang=en_US.UTF-8:\
> +	:charset=UTF-8:
>  
>  
>  #

Changing the default LC_COLLATE is risky, how about keeping LC_COLLATE=C
by default?

--- /usr/src/etc/login.conf     2013-09-30 19:04:24.000000000 +0000
+++ /etc/login.conf     2013-09-30 19:02:22.000000000 +0000
_at__at_ -26,7 +26,7 _at__at_
        :passwd_format=sha512:\
        :copyright=/etc/COPYRIGHT:\
        :welcome=/etc/motd:\
-       :setenv=MAIL=/var/mail/$,BLOCKSIZE=K:\
+       :setenv=MAIL=/var/mail/$,BLOCKSIZE=K,LC_COLLATE=C:\
        :path=/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin ~/bin:\
        :nologin=/var/run/nologin:\                                             
        :cputime=unlimited:\                                                    
_at__at_ -44,7 +44,9 _at__at_                                                               
        :pseudoterminals=unlimited:\                                            
        :priority=0:\                                                           
        :ignoretime_at_:\
-       :umask=022:
+       :umask=022:\
+       :charset=UTF-8:\
+       :lang=en_US.UTF-8:
 
 
 #


-- 
Benjamin Lee
http://www.b1c1l1.com/

Received on Wed Apr 02 2014 - 17:13:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:48 UTC