https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95624

            Bug ID: 95624
           Summary: std::put_time() and std::strftime() don't recognize %e
           Product: gcc
           Version: 9.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: karen.arutyunov at gmail dot com
  Target Milestone: ---

Created attachment 48714
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48714&action=edit
Test program

For MinGW build of GCC std::put_time() and std::strftime() don't recognize the
%e specifier, converting it into the empty string.

The attached program demonstrates the issue:

$ g++ -std=c++2a test.cxx
$ ./a.exe
0 ''
'CD'

While the expected output for June 10 should be:

4 'A10B'
'C10D'

In case this information helps, the same program produces the correct output on
the same host if built with MSVC.

Reply via email to