libstdc++/9635: time_get<>::date_order broken
peturr02@ru.is
peturr02@ru.is
Sun Feb 9 13:06:00 GMT 2003
>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;
}
More information about the Gcc-bugs
mailing list