public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* libstdc++/9635: time_get<>::date_order broken
@ 2003-02-09 13:06 peturr02
0 siblings, 0 replies; only message in thread
From: peturr02 @ 2003-02-09 13:06 UTC (permalink / raw)
To: gcc-gnats
>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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-02-09 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-09 13:06 libstdc++/9635: time_get<>::date_order broken peturr02
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).