This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
- From: "peturr02 at ru dot is" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Oct 2003 16:51:00 -0000
- Subject: [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
- References: <20030731090421.11740.peturr02@ru.is>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11740
------- Additional Comments From peturr02 at ru dot is 2003-10-06 16:50 -------
Benjamin Kosnik wrote:
> This should be fixed with the current ctype<wchar_t>::do_is code fix, as it is
> one of the things tested for.... However, I'm still getting errors in this
> testcase. I believe it to be incorrect...
By my reading of the standard, this version of do_is should return true if
any of the bits apply to the character, but the current implementation
seems to return true only if all the bits apply.