From owner-freebsd-arch@FreeBSD.ORG Sun Jan 25 17:36:55 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 1A2F9CD3; Sun, 25 Jan 2015 17:36:55 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0112.outbound.protection.outlook.com [65.55.169.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DFA8CDEC; Sun, 25 Jan 2015 17:36:53 +0000 (UTC) Received: from BY2PR05CA028.namprd05.prod.outlook.com (10.141.250.18) by BN1PR05MB437.namprd05.prod.outlook.com (10.141.58.11) with Microsoft SMTP Server (TLS) id 15.1.65.19; Sun, 25 Jan 2015 17:36:51 +0000 Received: from BN1BFFO11FD001.protection.gbl (2a01:111:f400:7c10::1:126) by BY2PR05CA028.outlook.office365.com (2a01:111:e400:2c5f::18) with Microsoft SMTP Server (TLS) id 15.1.65.19 via Frontend Transport; Sun, 25 Jan 2015 17:36:50 +0000 Received: from P-EMF02-SAC.jnpr.net (66.129.239.16) by BN1BFFO11FD001.mail.protection.outlook.com (10.58.144.64) with Microsoft SMTP Server (TLS) id 15.1.75.11 via Frontend Transport; Sun, 25 Jan 2015 17:36:50 +0000 Received: from magenta.juniper.net (172.17.27.123) by P-EMF02-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.146.0; Sun, 25 Jan 2015 09:36:49 -0800 Received: from chaos.jnpr.net (chaos.jnpr.net [172.21.16.28]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id t0PHamW06222; Sun, 25 Jan 2015 09:36:48 -0800 (PST) (envelope-from sjg@juniper.net) Received: from chaos (localhost [127.0.0.1]) by chaos.jnpr.net (Postfix) with ESMTP id 6EBCF580A3; Sun, 25 Jan 2015 09:36:48 -0800 (PST) To: Baptiste Daroussin Subject: Re: [RFC] Set the default locale to en_US.UTF-8 In-Reply-To: <20150124143357.GI81001@ivaldir.etoilebsd.net> References: <20150124143357.GI81001@ivaldir.etoilebsd.net> Comments: In-reply-to: Baptiste Daroussin message dated "Sat, 24 Jan 2015 15:33:57 +0100." From: "Simon J. Gerraty" X-Mailer: MH-E 8.0.3; nmh 1.3; GNU Emacs 22.3.1 Date: Sun, 25 Jan 2015 09:36:48 -0800 Message-ID: <21829.1422207408@chaos> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.16 as permitted sender) Authentication-Results: spf=softfail (sender IP is 66.129.239.16) smtp.mailfrom=sjg@juniper.net; freebsd.org; dkim=none (message not signed) header.d=none;freebsd.org; dmarc=permerror action=none header.from=juniper.net; X-Forefront-Antispam-Report: CIP:66.129.239.16; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(24454002)(50986999)(106466001)(76176999)(117636001)(62966003)(77156002)(450100001)(50466002)(46102003)(105596002)(50226001)(110136001)(92566002)(77096005)(33716001)(2950100001)(76506005)(48376002)(86362001)(87936001)(57986006)(19580395003)(19580405001)(6806004)(62816006)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR05MB437; H:P-EMF02-SAC.jnpr.net; FPR:; SPF:None; MLV:sfv; LANG:en; X-DmarcAction-Test: None X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(3005004);SRVR:BN1PR05MB437; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004); SRVR:BN1PR05MB437; X-Forefront-PRVS: 046753C63C X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:BN1PR05MB437; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jan 2015 17:36:50.2014 (UTC) X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4; Ip=[66.129.239.16] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR05MB437 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 17:36:55 -0000 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. We've recently been inflicted with more Linux machines at work and these have en_US.UTF-8 as default locale. 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. 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. Thus my FAQ entry on how to survive with these machines mentions that Setting ``LANG=C`` and ``LC_ALL=C`` fixes lots of problems. So my vote would be "no" ;-)