public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug localedata/23792] fr_FR.UTF8 thousands separator is not C++ conforming
       [not found] <bug-23792-131@http.sourceware.org/bugzilla/>
@ 2024-01-03 16:31 ` maiku.fabian at gmail dot com
  2024-01-03 17:18 ` maiku.fabian at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: maiku.fabian at gmail dot com @ 2024-01-03 16:31 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23792

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maiku.fabian at gmail dot com

--- Comment #6 from Mike FABIAN <maiku.fabian at gmail dot com> ---
I cannot reproduce a problem here:

mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%)
$ cat test.cpp 
#include <iostream>
#include <locale>

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 
mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%)
$ LC_ALL=de_DE.UTF-8 ./a.out
1.000
mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%)
$ LC_ALL=fr_FR.UTF-8 ./a.out
1 000
mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%)
$ LC_ALL=fr_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             " "

/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=de_DE.UTF-8 /usr/bin/printf "%'d\n" 1000
1.000
mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%)
$ LC_ALL=fr_FR.UTF-8 /usr/bin/printf "%'d\n" 1000
1 000
mfabian@hathi:/local/mfabian/src/glibc/localedata/locales (master $%)
$

So I don’t think there is a bug in glibc here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug localedata/23792] fr_FR.UTF8 thousands separator is not C++ conforming
       [not found] <bug-23792-131@http.sourceware.org/bugzilla/>
  2024-01-03 16:31 ` [Bug localedata/23792] fr_FR.UTF8 thousands separator is not C++ conforming maiku.fabian at gmail dot com
@ 2024-01-03 17:18 ` maiku.fabian at gmail dot com
  1 sibling, 0 replies; 2+ messages in thread
From: maiku.fabian at gmail dot com @ 2024-01-03 17:18 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=23792

Mike FABIAN <maiku.fabian at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |WORKSFORME
           Assignee|unassigned at sourceware dot org   |maiku.fabian at gmail dot com
             Status|NEW                         |RESOLVED

--- Comment #7 from Mike FABIAN <maiku.fabian at gmail dot com> ---
Closing as WORKSFORME.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-03 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23792-131@http.sourceware.org/bugzilla/>
2024-01-03 16:31 ` [Bug localedata/23792] fr_FR.UTF8 thousands separator is not C++ conforming maiku.fabian at gmail dot com
2024-01-03 17:18 ` maiku.fabian at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).