Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Apr 2015 01:38:21 -0700
From:      Stanislav Sedov <stas@FreeBSD.org>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, Dmitry Marakasov <amdmi3@amdmi3.ru>, Slawa Olhovchenkov <slw@zxy.spb.ru>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>, Garrett Cooper <yaneurabeya@gmail.com>
Subject:   Re: svn commit: r281129 - head/etc
Message-ID:  <CB87FA26-8C78-4A20-BC2C-6D3A9F0031E7@FreeBSD.org>
In-Reply-To: <20150410073230.GE99375@FreeBSD.org>
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>

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

> On Apr 10, 2015, at 12:32 AM, Gleb Smirnoff <glebius@FreeBSD.org> =
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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CB87FA26-8C78-4A20-BC2C-6D3A9F0031E7>