Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Nov 2016 09:35:01 +0100
From:      =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= <dumbbell@FreeBSD.org>
To:        freebsd-current@freebsd.org
Subject:   Re: Some locale data are broken
Message-ID:  <03581e2e-2379-1cd3-225c-ec49af563b28@FreeBSD.org>
In-Reply-To: <bc808e91-e35f-a0e4-081c-f083a2a372b7@FreeBSD.org>
References:  <bc808e91-e35f-a0e4-081c-f083a2a372b7@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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?= <dumbbell@FreeBSD.org>
To: freebsd-current@freebsd.org
Message-ID: <03581e2e-2379-1cd3-225c-ec49af563b28@FreeBSD.org>
Subject: Re: Some locale data are broken
References: <bc808e91-e35f-a0e4-081c-f083a2a372b7@FreeBSD.org>
In-Reply-To: <bc808e91-e35f-a0e4-081c-f083a2a372b7@FreeBSD.org>

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03581e2e-2379-1cd3-225c-ec49af563b28>