From owner-freebsd-current@freebsd.org Fri Nov 18 14:32:31 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 057C6C48CD7 for ; Fri, 18 Nov 2016 14:32:31 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146]) by mx1.freebsd.org (Postfix) with ESMTP id E28621B9; Fri, 18 Nov 2016 14:32:30 +0000 (UTC) (envelope-from eric@vangyzen.net) Received: from ford.home.vangyzen.net (unknown [76.164.15.242]) by smtp.vangyzen.net (Postfix) with ESMTPSA id 0829D5648E; Fri, 18 Nov 2016 08:32:28 -0600 (CST) Subject: Re: Some locale data are broken To: =?UTF-8?Q?Jean-S=c3=a9bastien_P=c3=a9dron?= , freebsd-current@freebsd.org References: <03581e2e-2379-1cd3-225c-ec49af563b28@FreeBSD.org> From: Eric van Gyzen Message-ID: <5d47cafe-c876-bb23-f295-6461d9cf2f75@vangyzen.net> Date: Fri, 18 Nov 2016 08:32:25 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <03581e2e-2379-1cd3-225c-ec49af563b28@FreeBSD.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit 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 14:32:31 -0000 On 11/18/2016 02:35, Jean-Sébastien Pédron wrote: > 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 Oh! I had thought France used '.' as a thousands separator. Thanks for correcting me, Jean-Sébastien. Now I'm /certain/ that the libc++ unit tests are wrong, since they think France uses a ','. :) Eric