Opened 9 years ago
Closed 9 years ago
#9129 closed Bugs (invalid)
gregorian::date_facet incorrect month with unicode
Reported by: | 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)
Change History (3)
by , 9 years ago
Attachment: | boostbug.cpp added |
---|
comment:1 by , 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 , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Simple program demonstrating the bug