From owner-freebsd-current@freebsd.org Fri Nov 18 08:35:15 2016 Return-Path: Delivered-To: freebsd-current@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 15162C46CFD for ; Fri, 18 Nov 2016 08:35:15 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from mail.made4.biz (mail.made4.biz [IPv6:2001:41d0:2:c018::1:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D19131397 for ; Fri, 18 Nov 2016 08:35:14 +0000 (UTC) (envelope-from dumbbell@FreeBSD.org) Received: from 141.7.19.93.rev.sfr.net ([93.19.7.141] helo=magellan.dumbbell.fr) by mail.made4.biz with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87 (FreeBSD)) (envelope-from ) id 1c7edW-000LeV-IT for freebsd-current@freebsd.org; Fri, 18 Nov 2016 09:35:12 +0100 Subject: Re: Some locale data are broken To: freebsd-current@freebsd.org References: From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= Message-ID: <03581e2e-2379-1cd3-225c-ec49af563b28@FreeBSD.org> Date: Fri, 18 Nov 2016 09:35:01 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="HxBNBxIMS16fPAHfCIgrhaEt9N7hjT70G" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Nov 2016 08:35:15 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --HxBNBxIMS16fPAHfCIgrhaEt9N7hjT70G Content-Type: multipart/mixed; boundary="7IHiwmdrCAMrMVQbqHgKxdItSJAbpHdCF"; protected-headers="v1" From: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= To: freebsd-current@freebsd.org Message-ID: <03581e2e-2379-1cd3-225c-ec49af563b28@FreeBSD.org> Subject: Re: Some locale data are broken References: In-Reply-To: --7IHiwmdrCAMrMVQbqHgKxdItSJAbpHdCF Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 17.11.2016 23:33, Eric van Gyzen wrote: > $ LANG=3Dfr_FR.UTF-8 locale -k thousands_sep > thousands_sep=3D" " >=20 > lrwxr-xr-x 1 root wheel 25 Nov 2 13:41 > /usr/share/locale/fr_FR.UTF-8/LC_NUMERIC -> ../uk_UA.UTF-8/LC_NUMERIC >=20 > $ cat /usr/share/locale/uk_UA.UTF-8/LC_NUMERIC > , > =20 > 3 >=20 > I'm not sure what Ukraine uses for a thousands separator, but this is > definitely wrong for France. Hi! What do you find broken exactly? In fr_FR (I don't know for other french-speaking countries), numbers are formatted like this: 12 345,67 Where the English equivalent would be: 12,345.67 Thus, this fr_FR LC_NUMERIC looks correct to me: decimal_point=3D"," thousands_sep=3D" " grouping=3D3 What looks incorrect to me is the output of `locale -k` when no keyword is specified: $ LANG=3Dfr_FR.UTF-8 LC_ALL=3Dfr_FR.UTF-8 locale -k ... d_fmt=3D"%m/%d/%y" ... altmon_1=3D"January" ... $ LANG=3Dfr_FR.UTF-8 LC_ALL=3Dfr_FR.UTF-8 locale -k d_fmt d_fmt=3D"%d.%m.%Y" $ LANG=3Dfr_FR.UTF-8 LC_ALL=3Dfr_FR.UTF-8 locale -k altmon_1 altmon_1=3D"janvier" But it's possible this flag isn't meant to work like this, as I just discovered it with your mail :) --=20 Jean-S=E9bastien P=E9dron --7IHiwmdrCAMrMVQbqHgKxdItSJAbpHdCF-- --HxBNBxIMS16fPAHfCIgrhaEt9N7hjT70G Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJYLr01AAoJEDnpl2Gl/ZTMIoEP/i4D/ZMVVa+9ngeFoyS61D2T sm2UtSAbhctIfdtYpBtbowMznTnRfyFDLGnbWKg85qdw7tYQyTL5Vi77nDycvqoG pSduiLvYPBZoY/C+PhboUPusTwE1OUYl/Hjb9X6ivju/rSSgotLegXggnCbf2hRm A8Bk3pEDvJvOWuuUfCfWqThXwhKfnAfZBFoSd1IAiBNtAqzTG95gLso9wruN73Df l56zcDxl50Ndl446G+MbYepVmpem/ZcDWcBVVTxnlBsFbi28OvXwaIQmbo5OMZXj ZP1B2vnU24v2/FaKYb48XhchA4htHASTFv7Nd1EibQtD7R7uHNB69RJEN2GaZ4co EokEkc7HIq+I4ZmjT+bnrYKQ0DRQ6lci7RlKswjch9wYUop1fNqUFmWmOmq02sqt aVUSnGBMoX3VOScHPoNQSAw6upvB7I4T2KR5cnvhkeSQXIKPB/3XgLNiKMlgJr3a o6/JdPbSy9Vj7tpNPL99qMqKCT3kuRBZTWEISCc3ZfUmzd+/Ai4e08dVUWYZz9lr xrHJ+zjQereoqlabcqykvwTbAG6eqFmtjDuZvCNoclVvcEwEDIPbZQe0fsk3ZzIq wp0iKUccyacrUvkkEif7Q+S7jFtfhCH+fXnFwUQdTHE8mKYBboqLfpjkc5ZYwaLg zrml7igIkGzSQEEz3mCt =M6S9 -----END PGP SIGNATURE----- --HxBNBxIMS16fPAHfCIgrhaEt9N7hjT70G--