Some locale data are broken

Jean-Sébastien Pédron dumbbell at FreeBSD.org
Fri Nov 18 08:35:15 UTC 2016


On 17.11.2016 23:33, Eric van Gyzen wrote:
> $ LANG=fr_FR.UTF-8 locale -k thousands_sep
> thousands_sep=" "
> 
> 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
> 
> $ cat /usr/share/locale/uk_UA.UTF-8/LC_NUMERIC
> ,
>  
> 3
> 
> 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=","
    thousands_sep=" "
    grouping=3

What looks incorrect to me is the output of `locale -k` when no keyword
is specified:

    $ LANG=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 locale -k
    ...
    d_fmt="%m/%d/%y"
    ...
    altmon_1="January"
    ...

    $ LANG=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 locale -k d_fmt
    d_fmt="%d.%m.%Y"

    $ LANG=fr_FR.UTF-8 LC_ALL=fr_FR.UTF-8 locale -k altmon_1
    altmon_1="janvier"

But it's possible this flag isn't meant to work like this, as I just
discovered it with your mail :)

-- 
Jean-Sébastien Pédron

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20161118/9814d7cd/attachment.sig>


More information about the freebsd-current mailing list