From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 928DF3858C62; Wed, 3 Jan 2024 16:31:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 928DF3858C62 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1704299504; bh=LBrUbB3kWoQmWFYsBIhppIpilXIPG64fkX1gzvGb6o0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rK8FqdoP8hGFeczduZ8kqqxNTRN0Nlb3Pr0Rql0TQjAEDR7qQJIzODT1PG/dpKkKi 6/U2lWl1SNUNjGEYNUHt9hGYtYuQaU58muHO8n+9jRGREkdIuRyMcW8DjdSpqAh9gC Jhm7JmOElbkj3/ZORzUQDezkrq7czKz/tjcaqyV8= From: "maiku.fabian at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug localedata/23792] fr_FR.UTF8 thousands separator is not C++ conforming Date: Wed, 03 Jan 2024 16:31:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: localedata X-Bugzilla-Version: 2.27 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: maiku.fabian at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D23792 Mike FABIAN changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maiku.fabian at gmail dot = com --- Comment #6 from Mike FABIAN --- I cannot reproduce a problem here: mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ cat test.cpp=20 #include #include using namespace std; int main() { locale::global(locale("")); cout.imbue(locale()); cout << 1000 << endl; } mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ g++ test.cpp=20 mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ LC_ALL=3Dde_DE.UTF-8 ./a.out 1.000 mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ LC_ALL=3Dfr_FR.UTF-8 ./a.out 1 000 mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ LC_ALL=3Dfr_FR.UTF-8 ./a.out | od -t x1 0000000 31 20 30 30 30 0a 0000006 mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ Surprisingly this prints a regular space in the French locale. Even though the French locale uses U+202F NARROW NO-BREAK SPACE for thousands_sep "=E2=80=AF" /usr/bin/printf prints U+202F NARROW NO-BREAK SPACE as the thousands separator in French locale though: mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ LC_ALL=3Dde_DE.UTF-8 /usr/bin/printf "%'d\n" 1000 1.000 mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ LC_ALL=3Dfr_FR.UTF-8 /usr/bin/printf "%'d\n" 1000 1=E2=80=AF000 mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%) $ So I don=E2=80=99t think there is a bug in glibc here. --=20 You are receiving this mail because: You are on the CC list for the bug.=