Date: Tue, 17 Nov 2015 09:22:57 +0100 From: "John Marino (FreeBSD)" <freebsd.contact@marino.st> To: Andrey Chernov <ache@freebsd.org>, Baptiste Daroussin <bapt@freebsd.org> Cc: Ed Schouten <ed@nuxi.nl>, arch@freebsd.org, marino@freebsd.org Subject: Re: Question about ASCII and =?UTF-8?Q?nl=5Flanginfo=20=28locale?= =?UTF-8?Q?=20work=29?= Message-ID: <b4625b7821cba9165921c3838d5177a8@secure.marino.st> In-Reply-To: <564A4FE9.6000403@freebsd.org> References: <20151110222636.GN10134@ivaldir.etoilebsd.net> <CABh_MKkAJmfTrT5qMwvcOcFAviD9h8okOnsH7PJ2x7gxFvY5Yw@mail.gmail.com> <564A27CD.7090908@freebsd.org> <20151116210659.GB59189@ivaldir.etoilebsd.net> <564A4FE9.6000403@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b4625b7821cba9165921c3838d5177a8>