Boost logo

Boost Users :

From: Lothar Werzinger (lothar_at_[hidden])
Date: 2008-07-31 21:11:18


There is a bug in the datetime library iostream operators

$ /opt2/linux/ix86/bin/g++-4.3.1 -I/opt2/linux/x86_64/include/boost-1_36 -o
boost1 boost1.cpp; ./boost1; ./boost1 1; ./boost1 1 2; ./boost1 1 2 3
testing testInputIso ...
expected=2005
actual =2005
expected=Sep
actual =Sep
expected=30
actual =30
expected=18
actual =19
boost1: boost1.cpp:97: void testInputIso(): Assertion
`(static_cast<int32_t>(18)) == (ldt.utc_time().time_of_day().hours())'
failed.
Aborted
testing testInputIsoWide ...
expected=2005
terminate called after throwing an instance of 'boost::gregorian::bad_year'
  what(): Year is out of valid range: 1400..10000
Aborted
testing testOutputIso ...
expected=2005-09-30 19:25:17+01:00
actual =2005-09-30 19:25:17+01:00
expected=2005-09-30 19:25:17-08:00
actual =2005-09-30 19:25:17-08:00
testing testOutputIso OK
testing testOutputIsoWide ...
expected=2005-09-30 19:25:17+01:00
actual =2005-Sep-30 19:25:17 CET
boost1: boost1.cpp:267: void testOutputIsoWide(): Assertion
`(iso8859_1<std::string>(str)) == (iso8859_1<std::string>(ss.str()))' failed.
Aborted

The test is attached.

Lothar

-- 
Lothar Werzinger Dipl.-Ing. Univ.
framework & platform architect
Tradescape Inc. - Enabling Efficient Digital Marketplaces
1754 Technology Drive, Suite 128
San Jose, CA 95110
web: http://www.tradescape.biz



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net