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

Jonathan Wakely jwakely@redhat.com
Tue Oct 14 17:07:00 GMT 2014


On 13/10/14 16:28 +0100, Jonathan Wakely wrote:
>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

So let's just test the full name and not worry about how it's
abbreviated.

Tested x86_64-linux, committed to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 9750 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20141014/cd7d31db/attachment.bin>


More information about the Gcc-patches mailing list