From owner-freebsd-arch@FreeBSD.ORG Sun Jan 25 15:50:03 2015 Return-Path: Delivered-To: arch@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 A6DAF978; Sun, 25 Jan 2015 15:50:03 +0000 (UTC) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60C4C23D; Sun, 25 Jan 2015 15:50:03 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.84 (FreeBSD)) (envelope-from ) id 1YFPRo-000Lac-UO; Sun, 25 Jan 2015 18:50:00 +0300 Date: Sun, 25 Jan 2015 18:50:00 +0300 From: Slawa Olhovchenkov To: Jordan Hubbard Subject: Re: [RFC] Set the default locale to en_US.UTF-8 Message-ID: <20150125155000.GD76051@zxy.spb.ru> References: <20150124143357.GI81001@ivaldir.etoilebsd.net> <20150125143243.GB76051@zxy.spb.ru> <7B1D8345-248B-4C44-9568-079BA29614C2@ixsystems.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <7B1D8345-248B-4C44-9568-079BA29614C2@ixsystems.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: arch@FreeBSD.org, Baptiste Daroussin X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Jan 2015 15:50:03 -0000 On Sun, Jan 25, 2015 at 06:58:13AM -0800, Jordan Hubbard wrote: > > > On Jan 25, 2015, at 6:32 AM, Slawa Olhovchenkov wrote: > > > > NO! Please, NOT! > > Not all bytestring allowed in UTF-8, as result -- unpedicable failed > > execution of sed, grep, vi, ed and etc. > > Huh. Someone should warn Apple then, since $LANG has been set to en_US.UTF-8 by default in OS X for years now. I just checked, and sed/grep/vi/ed/etc all still work. :) > > It's a good idea to change it. We have outgrown ISO-Latin1, and UTF-8 solves a host of ugly I18N interoperability problems when used consistently. I am years use ru_RU.KOI8-R. Now I try use ru_RU.UTF8 and got some issuse (on 10-STABLE). 9.x and OS may have dufferent version of software and don't touch this. vi ~/tips.work /home/slw/tips.work: unmodified: line 1; Conversion error on line 3 This is koi8 file in utf8 locale. Other case -- file names in koi8 locale -- this is invalid in utf-8. Change locale from C to utf8 may cause trouble. This is (change from one-byte tu multi-bytes locale) may be do individualy, after inspecting systems. This is may be OK for new install, but not [automatic] for update/upgrade.