[Bug libstdc++/64132] [7/8/9 Regression] FAIL: 22_locale/numpunct/members/char/3.cc execution test

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 22 14:58:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64132

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #11 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Since I can't reproduce this I can't debug it. Is anybody seeing this on
non-Debian systems?

Can somebody who sees the bug please see what this says:

#define _GNU_SOURCE
#include <langinfo.h>
#include <locale.h>
#include <stdio.h>
int main()
{
  setlocale(LC_NUMERIC, "nl_NL.ISO8859-15@euro");
  const char* thousands_sep = nl_langinfo(THOUSANDS_SEP);
  if (*thousands_sep)
  {
    const char* grouping = nl_langinfo(GROUPING);
    printf("THOUSANDS_SEP: 0x%x\nGROUPING: ", (unsigned)*thousands_sep);
    while (*grouping)
      printf(" %d", (int)*grouping++);
    puts("");
  }
  else
    puts("no grouping");
}


More information about the Gcc-bugs mailing list