From owner-freebsd-arch@freebsd.org Mon Nov 16 21:07:05 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A273CA30CA6 for ; Mon, 16 Nov 2015 21:07:05 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 7C9AF11A3 for ; Mon, 16 Nov 2015 21:07:05 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 7CAA9A30CA4; Mon, 16 Nov 2015 21:07:05 +0000 (UTC) Delivered-To: arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 62820A30CA3 for ; Mon, 16 Nov 2015 21:07:05 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EC35511A2; Mon, 16 Nov 2015 21:07:04 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: by wmdw130 with SMTP id w130so129003665wmd.0; Mon, 16 Nov 2015 13:07:03 -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=x+UTk5KdMQHNCoRSe/qh09X8JWdcXsDbE07QMxrdbZk=; b=sHR/Lie4EmUBnXn6eCw6Pn5Hm79Sr7waK6LkCSfnUIdzhFaDVLMNSlE4WQuck4jn3v aGo3Pz/FghayjIyyszMyCVsl0EqPqJFfDhNn3fdSJSB/kTGotNljjwADqdKVV+V/5AzC 13jZGQyaNH4fEJ3gnv7Qn/mRCnfNwYfUqUEMMDkrckWP6fIOCSXq62ukHxEPHv05gcr7 h0R5MS5IyMBvJoABzk1IwSx6moAsRUewkQPg1daocvHJXaIIRnEloalbNAOt/Bdq0Er6 sT5Ul1fenuUn+3tD0U4Jf8M9R4OYo+IRjxJIBzn3ugwvC01PdS5AmE6fv8f7D/Az6eqi Sxsw== X-Received: by 10.28.183.198 with SMTP id h189mr7548802wmf.44.1447708023220; Mon, 16 Nov 2015 13:07:03 -0800 (PST) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by smtp.gmail.com with ESMTPSA id c13sm20380191wmd.14.2015.11.16.13.07.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2015 13:07:01 -0800 (PST) Sender: Baptiste Daroussin Date: Mon, 16 Nov 2015 22:06:59 +0100 From: Baptiste Daroussin To: Andrey Chernov Cc: Ed Schouten , arch@freebsd.org, marino@freebsd.org Subject: Re: Question about ASCII and nl_langinfo (locale work) Message-ID: <20151116210659.GB59189@ivaldir.etoilebsd.net> References: <20151110222636.GN10134@ivaldir.etoilebsd.net> <564A27CD.7090908@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1LKvkjL3sHcu1TtY" Content-Disposition: inline In-Reply-To: <564A27CD.7090908@freebsd.org> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Nov 2015 21:07:05 -0000 --1LKvkjL3sHcu1TtY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 16, 2015 at 10:00:29PM +0300, Andrey Chernov wrote: > On 16.11.2015 20:35, Ed Schouten wrote: > > I personally think it's a shame if we were to deviate from returning > > "US-ASCII", for the reason that "US-ASCII" also happens to be the > > preferred MIME name for the character set: > >=20 > > http://www.iana.org/assignments/character-sets/character-sets.xhtml > >=20 > > "ASCII" doesn't even seem to be an alias for this character set. >=20 > Yes, I overlook it somehow. ASCII is not in the IANA, while both > ANSI_X3.4-1968 and US-ASCII are. >=20 > So, I reconsider the proposal. We can return ANSI_X3.4-1968 for POSIX/C > (for Linux compatibility reasons) and left pure US-ASCII as it was > (since it is used rarely). To tell the truth, the locale change I made were painful enough (mostly my fault)and I (for now) won't do anywork further beside fixing the fallouts i= f any are left. But I do support this proposal! >=20 > > In my opinion a decent implementation of newlocale() should support > > any of the character set names and aliases provided on the IANA page, > > but let nl_langinfo(CODESET) return the preferred MIME name. >=20 > BTW, we already have and return non-IANA codesets historically (inspired > by X11). I.e. we have ISO8859-* instead of preferred names ISO-8859-*, > moreover, ISO8859-* even not the aliases (!) and IANA knows nothing > about them. Linux have IANA preferred names here, i.e. ISO-8859-*. >=20 > So the question is: should we rename ISO8859-* to ISO-8859-* to be IANA > and Linux compatible? >=20 > We can strip first (or all) "_" and "-" from the environment names (as > Linux does), to not violate POLA. I would like to see that as well, lots of new comers I have seen setup the locales the IANA way and are unhappy because that does not work. The first = plan in the collation branch was to introduce the IANA syntax via an alias but i= n the end I removed it, because there was already to many changes. If one want to go further on the locale changes like the above proposal ple= ase proceed. Best regards, Bapt --1LKvkjL3sHcu1TtY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlZKRXMACgkQ8kTtMUmk6EyWtwCeIVKFFZPT1lXelA5fxjt1AWx2 x0MAoIgm9AqE/5zXGaAWma2msbykkL0j =ar0A -----END PGP SIGNATURE----- --1LKvkjL3sHcu1TtY--