re PR libstdc++/11740 (ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple...
authorPaolo Carlini <pcarlini@unitus.it>
Mon, 6 Oct 2003 22:32:59 +0000 (00:32 +0200)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 6 Oct 2003 22:32:59 +0000 (22:32 +0000)
commitba9b12d1d29019dc0f200cbfaea484e7a3762481
tree0baf01d8d334ff1f434283654e7531bbc5597dcd
parent8a7a6f4ded855d2fc07bc9c331b1058594bbe479
re PR libstdc++/11740 (ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.)

2003-10-06  Paolo Carlini  <pcarlini@unitus.it>

PR libstdc++/11740
* config/locale/gnu/ctype_members.cc (ctype<wchar_t>::do_is):
Fix to actually return (M & m) != 0 as per 22.2.1.1.2.
* config/locale/generic/ctype_members.cc: Same.
* testsuite/22_locale/ctype/is/wchar_t/11740.cc: New.

From-SVN: r72167
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/generic/ctype_members.cc
libstdc++-v3/config/locale/gnu/ctype_members.cc
libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/11740.cc [new file with mode: 0644]