Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 2014 12:12:48 -0700
From:      Benjamin Lee <ben@b1c1l1.com>
To:        sbruno@freebsd.org
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>
Subject:   Re: login.conf --> UTF-8
Message-ID:  <20140402121248.5c3d02f0@b1c1l1.com>
In-Reply-To: <1396457629.2280.2.camel@powernoodle.corp.yahoo.com>
References:  <1396457629.2280.2.camel@powernoodle.corp.yahoo.com>

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

[-- Attachment #1 --]
On Wed, 02 Apr 2014 09:53:49 -0700, Sean Bruno <sbruno@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
> @@ -45,7 +45,9 @@
>  	:kqueues=unlimited:\
>  	:priority=0:\
>  	:ignoretime@:\
> -	: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
@@ -26,7 +26,7 @@
        :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:\                                                    
@@ -44,7 +44,9 @@                                                               
        :pseudoterminals=unlimited:\                                            
        :priority=0:\                                                           
        :ignoretime@:\
-       :umask=022:
+       :umask=022:\
+       :charset=UTF-8:\
+       :lang=en_US.UTF-8:
 
 
 #


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

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJTPGE0AAoJEIdV4+NBZRmFMOcP/RStZjoY/YOAPqkbIo2ceOrV
wB42MCMLJ2EE1WGMu6+XZ3O2YnI58PxSu+upo273MulhXG+hLxdLD9I3IGDq/b6s
Mtu2+B4EK8yumhb/Ogh4mFEXk2s75bU04VqkKKRjRrMoFWfM+g1WZJoD7mPT6Zhp
NqgyZUkmX04OSydKVvsncGJO9z7KIMEOQaWfoEqw4TLQ/jCImrBc50/ie6ZNPrAI
maR8Axrqpe2vDz9VMI4q+/ih8OdOsOkxjnPVi4kfzUwxs3KwDAxeXi6RzsU137cc
YY4d2ro8KMQHEb43GlBPvbGibPOo+R2QXqjIYi52uTjL5b8KMSe06jTYLAy34Dzo
BSJMriL96qROV8ta8IWdEWCs6MrQpo9Vn0csCKBywnfToqxKFESdSHNcoB/K3smW
B1KcBqUp4+TmDYD6CnZhG4PKn2Zi29YbhQWC9uaZqAol3/BfdIoUx16CFqR6qINf
rnUT4ZMXO/BSnwXLdS6j78N1Tus74OVKdppq5JqtDgg0RHf7JCYylE/O1WCK5EeD
+YLV+WAAbPuoAoQpwtblo+KGTZhJSvTUlGtHqZoLp0Ae2OQ8FWtKxdNf/CCcCEEi
wqF5CIFn0AeCafWPLSzjuVAHWc9e+JlNg64ltlnttIP8rrWa604j15w/uE7TCqeU
o69LChYy+FxLQ4gvwOl7
=9vf4
-----END PGP SIGNATURE-----
help

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