From owner-freebsd-arch@freebsd.org Tue Nov 17 08:23:06 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 251F2A31DAC for ; Tue, 17 Nov 2015 08:23:06 +0000 (UTC) (envelope-from freebsd.contact@marino.st) 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 0DC071A28 for ; Tue, 17 Nov 2015 08:23:06 +0000 (UTC) (envelope-from freebsd.contact@marino.st) Received: by mailman.ysv.freebsd.org (Postfix) id 0C7A0A31DAB; Tue, 17 Nov 2015 08:23:06 +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 0C1F1A31DAA for ; Tue, 17 Nov 2015 08:23:06 +0000 (UTC) (envelope-from freebsd.contact@marino.st) Received: from shepard.synsport.net (mail.synsport.com [208.69.230.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DA9271A27; Tue, 17 Nov 2015 08:23:05 +0000 (UTC) (envelope-from freebsd.contact@marino.st) Received: by shepard.synsport.net (Postfix, from userid 80) id 23EAD43C0E; Tue, 17 Nov 2015 02:22:57 -0600 (CST) To: Andrey Chernov , Baptiste Daroussin Subject: Re: Question about ASCII and =?UTF-8?Q?nl=5Flanginfo=20=28locale?= =?UTF-8?Q?=20work=29?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 17 Nov 2015 09:22:57 +0100 From: "John Marino (FreeBSD)" Cc: Ed Schouten , arch@freebsd.org, marino@freebsd.org Reply-To: marino@freebsd.org Mail-Reply-To: marino@freebsd.org In-Reply-To: <564A4FE9.6000403@freebsd.org> References: <20151110222636.GN10134@ivaldir.etoilebsd.net> <564A27CD.7090908@freebsd.org> <20151116210659.GB59189@ivaldir.etoilebsd.net> <564A4FE9.6000403@freebsd.org> Message-ID: X-Sender: freebsd.contact@marino.st User-Agent: Roundcube Webmail/0.9.1 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: Tue, 17 Nov 2015 08:23:06 -0000 On 11/16/2015 10:51 PM, Andrey Chernov wrote: > On 17.11.2015 0:06, Baptiste Daroussin wrote: >> 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 in the >> end I removed it, because there was already to many changes. > > For ISO case we don't need aliases and can keep our internal names > hierarchy honoring POLA. All we need is: > 1) Convert "ISO-" and "ISO_" to "ISO" for setlocale(3) input. > 2) Convert from "ISO" to "ISO-" for setlocale(3), nl_langinfo(3) and > locale(1) output. A huge patch just went into GCC libstdc++ testsuite to change all the locale names to "ISO8859-" because it works for both Linux and *BSD. This is a change for changes sake. Locale -m lists the encodings. Locale -a lists the available locales This is true on Linux as well. Nobody is getting POLA'D here. Moveover, there is significant work to implement this. We brought up the possibility of hyphen- and case- sensitivity on DragonFly and the idea was shot down. The reasons were solid enough. There is no standard for encoding, period. Using one source is as valid another another. I say leave it alone. John