Opened 9 years ago

Closed 9 years ago

#9129 closed Bugs (invalid)

gregorian::date_facet incorrect month with unicode

Reported by: Roman Vaughan <nzsmartie@…> Owned by: az_sw_dude
Milestone: To Be Determined Component: date_time
Version: Boost 1.54.0 Severity: Cosmetic
Keywords: gregorian date facet ostream wostream ostringstream wostringstream Cc:

Description

Hey Guys,

When I create a date_facet to format a date as "%Y-%m-%d", Passing today's date into a std::ostringstream object will result in "2013-09-19", yet when an std::wostringstream object is imbued with the exact same facet, "2013-Sep-19" is the result.

Compiled with MinGW (g++ 4.6.2) Windows 7 x64 Home Premium

Attachments (1)

boostbug.cpp (988 bytes ) - added by Roman Vaughan <nzsmartie@…> 9 years ago.
Simple program demonstrating the bug

Download all attachments as: .zip

Change History (3)

by Roman Vaughan <nzsmartie@…>, 9 years ago

Attachment: boostbug.cpp added

Simple program demonstrating the bug

comment:1 by Roman Vaughan <nzsmartie@…>, 9 years ago

I'm sorry, I've just noticed there is a 'wdate_facet' which i'm supposed to use for unicode strings. After changing the type, it formats correctly. I'm sorry for the misleading bug report

comment:2 by Marshall Clow, 9 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.