[PATCH, libstdc++] Fix 22_locale/time_get/get_weekday/char/38081-[12].cc tests for glibc 2.17

Julian Brown julian@codesourcery.com
Mon Feb 11 15:34:00 GMT 2013


It seems that glibc 2.17 changes the abbreviated names of weekdays for
"ru_RU" locales by removing an extraneous ".", as described in:


An earlier patch (circa glibc 2.14) changed (IIUC!) archaic/unusual
three-letter abbreviations to more-common two-letter abbreviations, but
included dots after each weekday name, which was apparently still wrong.
But, the two tests of this feature in the libstdc++ testsuite expect
those dots to be present, so they fail.

So, the attached patch simply removes the expectation that dots are
present in the abbreviated names from the libstdc++ tests in question,
if the glibc version in use is recent enough.

The tests pass (with a current gcc, trunk eglibc) with the attached
patch, and fail (for me) without it (cross-testing to ARM Linux, for
no particular reason). OK to apply?




    * testsuite/22_locale/time_get/get_weekday/char/38081-1.cc (test01):
    Don't expect dots after abbreviated weekday names for ru_RU for
    glibc versions >= 2.17.
    * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc (test01):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libstdc++-ru-locale-weekday-fix-fsf-1.diff
Type: text/x-patch
Size: 2077 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20130211/f90cf230/attachment.bin>

More information about the Gcc-patches mailing list