This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/9635: time_get<>::date_order broken


>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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]