This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/9635: time_get<>::date_order broken
- From: peturr02 at ru dot is
- To: gcc-gnats at gcc dot gnu dot org
- Date: 9 Feb 2003 13:05:41 -0000
- Subject: libstdc++/9635: time_get<>::date_order broken
- Reply-to: peturr02 at ru dot is
>Number: 9635
>Category: libstdc++
>Synopsis: time_get<>::date_order broken
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Feb 09 13:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: peturr02@ru.is
>Release: gcc-3.2.1
>Organization:
>Environment:
Red Hat Linux 8.0
>Description:
It seems that time_get<>::date_order always returns time_base::no_order in all locales. It seems possible to retrieve this from nl_langinfo, so a useful value should be returned.
>How-To-Repeat:
See attachment.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="dateorderbug.cc"
Content-Disposition: inline; filename="dateorderbug.cc"
#include <locale>
#undef NDEBUG
#include <cassert>
int main()
{
using namespace std;
typedef time_get<char> ctg;
locale loc ("is_IS");
const ctg& tg = use_facet<ctg>(loc);
assert(tg.date_order() == time_base::dmy);
return 0;
}