[PATCH 2/3] libstdc++: Add put_time support.

Jonathan Wakely jwakely@redhat.com
Mon Oct 13 15:28:00 GMT 2014


On 13/10/14 13:08 +0100, Jonathan Wakely wrote:
>On 15/04/14 23:20 +0200, Rüdiger Sonderfeld wrote:
>>Described in [ext.manip].
>>
>>* libstdc++-v3/include/std/iomanip (_Put_time): New struct.
>> (put_time): New manipulator.
>> (operator<<): New overloaded function.
>>* libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/char/1.cc:
>>* libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/char/2.cc:
>>* libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/wchar_t/1.cc:
>>* libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/wchar_t/2.cc:
>> New file.
>
>The 27_io/manipulators/extended/put_time/char/2.cc and
>27_io/manipulators/extended/put_time/wchar_t/2.cc tests fail for me.
>
>i2.exe: /home/jwakely/src/gcc/gcc/libstdc++-v3/testsuite/27_io/manipulators/extended/put_time/char/2.cc:41: void test01(): Assertion `oss.str() == "Son 1971"' failed.
>FAIL: 27_io/manipulators/extended/put_time/char/2.cc execution test

With my de_DE.utf8 locale the output is "So 1971" not "Son 1971".

$ LANG=de_DE.utf8 date +%a 
Mo



More information about the Libstdc++ mailing list