From owner-svn-src-head@FreeBSD.ORG Fri Apr 10 08:38:44 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AA968F5; Fri, 10 Apr 2015 08:38:44 +0000 (UTC) Received: from mx0.deglitch.com (unknown [IPv6:2001:16d8:ff00:19d::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0DCF3EAC; Fri, 10 Apr 2015 08:38:44 +0000 (UTC) Received: from [192.168.11.8] (unknown [98.248.95.7]) by mx0.deglitch.com (Postfix) with ESMTPSA id 5226C8FC27; Fri, 10 Apr 2015 12:38:35 +0400 (MSK) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Subject: Re: svn commit: r281129 - head/etc From: Stanislav Sedov In-Reply-To: <20150410073230.GE99375@FreeBSD.org> Date: Fri, 10 Apr 2015 01:38:21 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: References: <20150406082553.GW64665@FreeBSD.org> <20150406084141.GK23643@zxy.spb.ru> <20150406084937.GX64665@FreeBSD.org> <20150406085323.GL23643@zxy.spb.ru> <20150409215802.GY21982@hades.panopticon> <20150409220442.GQ8220@zxy.spb.ru> <20150409232711.GZ21982@hades.panopticon> <20150409234026.GH1394@zxy.spb.ru> <20150410000259.GA21982@hades.panopticon> <20150410070845.GU8220@zxy.spb.ru> <20150410073230.GE99375@FreeBSD.org> To: Gleb Smirnoff X-Mailer: Apple Mail (2.2098) Cc: "src-committers@freebsd.org" , "svn-src-all@freebsd.org" , Dmitry Marakasov , Slawa Olhovchenkov , "svn-src-head@freebsd.org" , Garrett Cooper X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 08:38:44 -0000 > On Apr 10, 2015, at 12:32 AM, Gleb Smirnoff = wrote: >=20 > On Fri, Apr 10, 2015 at 10:08:45AM +0300, Slawa Olhovchenkov wrote: > S> What benefits from switching to utf8 locale in 'default' login = class? >=20 > Being on the same page as rest of the world? >=20 To be fair, this is not exactly true. To my knowledge no mainstream operating systems except Linux employ UTF-8 at the moment: * Windows is still UTF-16 based * Mac OS X uses it=E2=80=99s own version of UTF-8 (aka UTF-8-MAC) which is the cause of constant pain when moving files between OS X and FreeBSD. Personally, I=E2=80=99d agree with Slawa that this change seems somewhat premature and does not seem to bring any immediate benefits: * It will hardly improve compatibility with other OSes; * A lot of applications in widespread use do not have UTF-8 support, and UTF generally requires some non-trivial handling unlike 8 bit encodings which lead to numerous security issues in the past (and continues to so). * Changing the default encoding for the login class will lead to an unexpected encoding change for =E2=80=98russian=E2=80=99 login = class users. This might affect a lot of legacy applications, and might indeed result in a data loss in case of databases. In my view, adding an additional login class with UTF-8 encoding sounds like a better solution at this time. This will bring pretty much the same benefits (as you noted earlier fresh FreeBSD installation require specifying the login class manually, in which case that new login class can be passed in), but at the same time it won=E2=80=99t result in a sudden encoding change for existing =E2=80=98russian=E2=80=99 login class users.=20 -- ST4096-RIPE