This gets all of the test under test/localization/locale.categories/category.time passing (or XFAIL) under linux.
Details
Diff Detail
Event Timeline
I changed the month name test data for ru_RU since the 5th month is not consistent across GLIBC distributions.
test/localization/locale.categories/category.time/locale.time.get.byname/get_one.pass.cpp | ||
---|---|---|
47 | Perhaps !defined(__GLIBC__) instead. FreeBSD has no timezone with %c either. |
Same comment as previous change: Is there are *correct* result (i.e, mandated by a standard), and if so, what is it.
If it's just "implementation defined", then we're going to have to figure out how to test this stuff, and this is a reasonable start.
I need to back out the changes to get_monthname.pass.cpp and get_monthname_wide.pass.cpp. It doesn't actually fix what I had hoped.
@mclow.lists I'll keep my eye on the standard, but for the most part I'm just checking that the output matches what is in /usr/share/i18n/locales.
test/localization/locale.categories/category.time/locale.time.get.byname/get_one.pass.cpp | ||
---|---|---|
47 | Sounds good. The actual format of %c is still unspecified but I see the test is currently passing on FreeBSD10. |
I backed out changes to get_one and get_one_wide. I incorrectly thought it used the timezone, but trying to get the actual output causes it to print a bunch of non-sense characters at the end. Investigation is needed. Those tests are just marked XFAIL on linux now.
Perhaps !defined(__GLIBC__) instead. FreeBSD has no timezone with %c either.