From owner-freebsd-arch@FreeBSD.ORG Sun Jan 25 18:44:27 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 7AC503FE for ; Sun, 25 Jan 2015 18:44:27 +0000 (UTC) Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0854A839 for ; Sun, 25 Jan 2015 18:44:27 +0000 (UTC) Received: by mail-wg0-f49.google.com with SMTP id k14so5633937wgh.8 for ; Sun, 25 Jan 2015 10:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=DPMsY55CFYyJDJTR2fiQYy/Qd4eNSV+zdlU2wQY0l1Y=; b=oaIm2nsOAuV1FJeAtegwlG9ZHeXBAXBZNgId3l5ntKR/Gr6i14nDI49vKQshLry/w2 z3g83IVxYWtjfhlYZPL8C+DGwQFy6ntNIlc8+cBfq5I8iCIR58CT2srY9ydMhfXgmgza nGmKoxBBEYkWWCv8qNZvv+w/fqa4iOyR0FFlSxK3HWjhw6bZqyy7XUZhLLFxgI6TCUQp f73AVlj4bIQiKC6cqshpzDXz+W0KMjtQrX4/zfDyT6qPO/lIr2l078sy3FcTB6VKfyeV riQHik0eKAmP4PXjyePVLBp7xEVnFmIkiY+ee/vC4BWhmrVXWmMVkIWQUne03Ft/6g67 f45A== X-Received: by 10.194.172.35 with SMTP id az3mr19792569wjc.43.1422211465459; Sun, 25 Jan 2015 10:44:25 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id fo15sm10762082wic.19.2015.01.25.10.44.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Jan 2015 10:44:24 -0800 (PST) Sender: Baptiste Daroussin Date: Sun, 25 Jan 2015 19:44:22 +0100 From: Baptiste Daroussin To: "Simon J. Gerraty" Subject: Re: [RFC] Set the default locale to en_US.UTF-8 Message-ID: <20150125184422.GN81001@ivaldir.etoilebsd.net> References: <20150124143357.GI81001@ivaldir.etoilebsd.net> <21829.1422207408@chaos> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6yHiY5vv/BiPjcMt" Content-Disposition: inline In-Reply-To: <21829.1422207408@chaos> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: arch@freebsd.org 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 18:44:27 -0000 --6yHiY5vv/BiPjcMt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 25, 2015 at 09:36:48AM -0800, Simon J. Gerraty wrote: > Baptiste Daroussin wrote: > > Given that vt handles properly unicode inputs. I would like to propose = that now > > we set the defaults locales on HEAD to en_US.UTF-8. >=20 > We've recently been inflicted with more Linux machines at work > and these have en_US.UTF-8 as default locale. >=20 > I run emacs -nw inside screen inside xterm (so I can easily re-attach > from anywhere). I traced the fact that meta key didn't work to the > locale setting. Forcing it to 'C' made everything work as it should. >=20 > In the past I've found (on some systems at least) that locale's other > than 'C' break shell scripts - because character classes no longer > match. I assume this is due to different collating rules. >=20 > Thus my FAQ entry on how to survive with these machines mentions that > Setting ``LANG=3DC`` and ``LC_ALL=3DC`` fixes lots of problems. >=20 > So my vote would be "no" ;-) >=20 The collation change is fixed by my proposal: collation remain set to C Concerning vi in head it does support correctly unicode. Concerning sed/grep I'm not aware of any problem. There were to my knowledge 2 issues: - libedit which is now fixed. - console which is fixed by the switch to vt Bapt --6yHiY5vv/BiPjcMt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlTFOYYACgkQ8kTtMUmk6ExmtQCfcgd8qwPoLvUD8SDuy/mlgeNd vPQAoLbLUXzrzUeA1cApsczjb5v7PY+J =KjbZ -----END PGP SIGNATURE----- --6yHiY5vv/BiPjcMt--