[Bug libstdc++/96322] New: 22_locale/numpunct/members/char/3.cc is outdated: expects grouping=0, actual=3
slyfox at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 26 12:11:48 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96322
Bug ID: 96322
Summary: 22_locale/numpunct/members/char/3.cc is outdated:
expects grouping=0, actual=3
Product: gcc
Version: 10.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: slyfox at gcc dot gnu.org
Target Milestone: ---
Noticed as a test failure on glibc-2.31 system:
FAIL: 22_locale/numpunct/members/char/3.cc execution test
Test does
"""
// nl_NL chosen because it has no thousands separator (at this time).
locale loc_it = locale(ISO_8859(15,nl_NL));
const numpunct<char>& nump_it = use_facet<numpunct<char> >(loc_it);
string g = nump_it.grouping();
// Ensure that grouping is empty for locales with empty thousands separator.
VERIFY( g == "" );
"""
and expects "grouping 0;0".
The failure started after glibc-2.30 update which changed nl_NL locale
definition:
-thousands_sep ""
-grouping 0;0
+thousands_sep "."
+grouping 3;3
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=fefa21790b5081e5d04662a240e2efd18603ef86
More information about the Gcc-bugs
mailing list