public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
@ 2003-07-31  9:04 peturr02 at ru dot is
  2003-07-31  9:04 ` [Bug libstdc++/11740] " peturr02 at ru dot is
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: peturr02 at ru dot is @ 2003-07-31  9:04 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle
                    multiple bits in mask.
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: peturr02 at ru dot is
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu

ctype<wchar_t>::do_is(mask m, wchar_t c) assumes that m is equal to one
of the values in the ctype_base::mask enumeration. This causes do_is to
fail when more than one bit is set in m.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
@ 2003-07-31  9:04 ` peturr02 at ru dot is
  2003-08-01  9:00 ` peturr02 at ru dot is
                   ` (16 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: peturr02 at ru dot is @ 2003-07-31  9:04 UTC (permalink / raw)
  To: gcc-bugs

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-07-31 09:04 -------
Created an attachment (id=4531)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4531&action=view)
Test case


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
  2003-07-31  9:04 ` [Bug libstdc++/11740] " peturr02 at ru dot is
@ 2003-08-01  9:00 ` peturr02 at ru dot is
  2003-08-23 17:15 ` pinskia at gcc dot gnu dot org
                   ` (15 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: peturr02 at ru dot is @ 2003-08-01  9:00 UTC (permalink / raw)
  To: gcc-bugs

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


peturr02 at ru dot is changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4531 is|0                           |1
           obsolete|                            |


------- Additional Comments From peturr02 at ru dot is  2003-08-01 09:00 -------
Created an attachment (id=4544)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4544&action=view)
Test case

Fixed bug in original test case


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
  2003-07-31  9:04 ` [Bug libstdc++/11740] " peturr02 at ru dot is
  2003-08-01  9:00 ` peturr02 at ru dot is
@ 2003-08-23 17:15 ` pinskia at gcc dot gnu dot org
  2003-10-01 21:28 ` paolo at gcc dot gnu dot org
                   ` (14 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-23 17:15 UTC (permalink / raw)
  To: gcc-bugs

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-08-23 17:15:07
               date|                            |
   Target Milestone|3.4                         |---


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-08-23 17:15 -------
Related to bug 11844.
I can confirm this on the mainline (20030823).


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (2 preceding siblings ...)
  2003-08-23 17:15 ` pinskia at gcc dot gnu dot org
@ 2003-10-01 21:28 ` paolo at gcc dot gnu dot org
  2003-10-06 16:44 ` bkoz at gcc dot gnu dot org
                   ` (13 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-01 21:28 UTC (permalink / raw)
  To: gcc-bugs

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


paolo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |paolo at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED


------- Additional Comments From paolo at gcc dot gnu dot org  2003-10-01 21:28 -------
Working on it since related to 11844.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (3 preceding siblings ...)
  2003-10-01 21:28 ` paolo at gcc dot gnu dot org
@ 2003-10-06 16:44 ` bkoz at gcc dot gnu dot org
  2003-10-06 16:51 ` peturr02 at ru dot is
                   ` (12 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2003-10-06 16:44 UTC (permalink / raw)
  To: gcc-bugs

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 bkoz at gcc dot gnu dot org  2003-10-06 16:44 -------

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...

-benjamin


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (4 preceding siblings ...)
  2003-10-06 16:44 ` bkoz at gcc dot gnu dot org
@ 2003-10-06 16:51 ` peturr02 at ru dot is
  2003-10-06 18:38 ` paolo at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: peturr02 at ru dot is @ 2003-10-06 16:51 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (5 preceding siblings ...)
  2003-10-06 16:51 ` peturr02 at ru dot is
@ 2003-10-06 18:38 ` paolo at gcc dot gnu dot org
  2003-10-06 18:53 ` peturr02 at ru dot is
                   ` (10 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-06 18:38 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 568 bytes --]

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


paolo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |WAITING


------- Additional Comments From paolo at gcc dot gnu dot org  2003-10-06 18:38 -------
Pétur, could you please detail a little more your reading? In 22.2.1.1.2 I don't
see any "any" ;), only an "&" in p2...


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (6 preceding siblings ...)
  2003-10-06 18:38 ` paolo at gcc dot gnu dot org
@ 2003-10-06 18:53 ` peturr02 at ru dot is
  2003-10-06 18:56 ` paolo at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: peturr02 at ru dot is @ 2003-10-06 18:53 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 946 bytes --]

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 18:53 -------
Paolo Carlini wrote:
> Pétur, could you please detail a little more your reading? In 22.2.1.1.2
> I don't see any "any" ;), only an "&" in p2...

This is the relevant text:
> Returns: The first form returns the result of the expression
> (M & m) != 0; i.e., true if the character has the characteristics
> specified. The second form returns high. 

(M & m) != 0 is true if any bit is set in both M and m. This is
also consistent with the specialization for char.
The current implementation returns true if (M & m) == m && m != 0.

The sentence "true if the character has the characteristics specified"
implies the current implementation. I suspect that it should read
"true if the character has any of the characteristics specified".


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (7 preceding siblings ...)
  2003-10-06 18:53 ` peturr02 at ru dot is
@ 2003-10-06 18:56 ` paolo at gcc dot gnu dot org
  2003-10-06 19:03 ` peturr02 at ru dot is
                   ` (8 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-06 18:56 UTC (permalink / raw)
  To: gcc-bugs

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 paolo at gcc dot gnu dot org  2003-10-06 18:56 -------
Ok, thanks, now I see, please tell me if I'm wrong...
This is the rationale: a character *cannot* belong simultaneously to two different 
values of the ctype_base enum: for instance cannot be, at the same time, uppercase
AND lowercase. That's why do_is must be intended to mean "any".


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (8 preceding siblings ...)
  2003-10-06 18:56 ` paolo at gcc dot gnu dot org
@ 2003-10-06 19:03 ` peturr02 at ru dot is
  2003-10-06 19:13 ` paolo at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: peturr02 at ru dot is @ 2003-10-06 19:03 UTC (permalink / raw)
  To: gcc-bugs

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 19:03 -------
Paolo Carlini wrote:
> This is the rationale: a character *cannot* belong simultaneously to
> two different values of the ctype_base enum:

It can, for example alpha and upper.

> That's why do_is must be intended to mean "any".

The only use for this feature that I see is to be able to use
alnum and graph. ct.is(alnum, c) should return true if c if either
ct.is(digit, c) is true or ct.is(alpha, c) is true. I can't think of
any character for which both are true.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (9 preceding siblings ...)
  2003-10-06 19:03 ` peturr02 at ru dot is
@ 2003-10-06 19:13 ` paolo at gcc dot gnu dot org
  2003-10-06 19:43 ` paolo at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-06 19:13 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

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 paolo at gcc dot gnu dot org  2003-10-06 19:13 -------
Pétur wrote:
>> This is the rationale: a character *cannot* belong simultaneously to
>> two different values of the ctype_base enum:
>
>It can, for example alpha and upper.

Yes, sorry.

>> That's why do_is must be intended to mean "any".
>
>The only use for this feature that I see is to be able to use
>alnum and graph. ct.is(alnum, c) should return true if c if either
>ct.is(digit, c) is true or ct.is(alpha, c) is true. I can't think of
>any character for which both are true.

Ok. This is the point at the root of my (too general) intuition.

Now... If I understand well you see an inconsistency in the standard
between 22.2.1.1.2 (which we already correctly implement as per your
previous message) and the definitions of alnum == alpha | digit and
graph == alnum | punct, right?


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (10 preceding siblings ...)
  2003-10-06 19:13 ` paolo at gcc dot gnu dot org
@ 2003-10-06 19:43 ` paolo at gcc dot gnu dot org
  2003-10-06 19:45 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-06 19:43 UTC (permalink / raw)
  To: gcc-bugs

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 paolo at gcc dot gnu dot org  2003-10-06 19:43 -------
Ok, finally I see (I hope ;) !

1- Currently we do *not* implement correctly (M & m) != 0 because we do,
   incorrectly, "&=" in the loop, instead of "|=" (and __ret initialized
   false).
2- However, we *seem* to implement the standard because the standard says,
   with an imprecise wording, "true if the character has the characteristics
   specified" instead of the more correct and consistent with the logical
   definition, "true if the character has any of the characteristics specified"

I'm testing a patch along the lines of 1- above...


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (11 preceding siblings ...)
  2003-10-06 19:43 ` paolo at gcc dot gnu dot org
@ 2003-10-06 19:45 ` pinskia at gcc dot gnu dot org
  2003-10-06 22:33 ` cvs-commit at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-06 19:45 UTC (permalink / raw)
  To: gcc-bugs

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |ASSIGNED


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (12 preceding siblings ...)
  2003-10-06 19:45 ` pinskia at gcc dot gnu dot org
@ 2003-10-06 22:33 ` cvs-commit at gcc dot gnu dot org
  2003-10-06 22:39 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-06 22:33 UTC (permalink / raw)
  To: gcc-bugs

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 cvs-commit at gcc dot gnu dot org  2003-10-06 22:33 -------
Subject: Bug 11740

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	paolo@gcc.gnu.org	2003-10-06 22:32:59

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config/locale/gnu: ctype_members.cc 
	libstdc++-v3/config/locale/generic: ctype_members.cc 
Added files:
	libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t: 11740.cc 

Log message:
	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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&r1=1.1997&r2=1.1998
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/locale/gnu/ctype_members.cc.diff?cvsroot=gcc&r1=1.11&r2=1.12
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/locale/generic/ctype_members.cc.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/testsuite/22_locale/ctype/is/wchar_t/11740.cc.diff?cvsroot=gcc&r1=NONE&r2=1.1


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (13 preceding siblings ...)
  2003-10-06 22:33 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-06 22:39 ` pinskia at gcc dot gnu dot org
  2003-10-07  8:41 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  17 siblings, 0 replies; 19+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-06 22:39 UTC (permalink / raw)
  To: gcc-bugs

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-10-06 22:39 -------
Fixed in 3.4.


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (14 preceding siblings ...)
  2003-10-06 22:39 ` pinskia at gcc dot gnu dot org
@ 2003-10-07  8:41 ` cvs-commit at gcc dot gnu dot org
  2003-10-07  8:48 ` paolo at gcc dot gnu dot org
  2005-02-08  7:22 ` cvs-commit at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2003-10-07  8:41 UTC (permalink / raw)
  To: gcc-bugs

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 cvs-commit at gcc dot gnu dot org  2003-10-07 08:41 -------
Subject: Bug 11740

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_3-branch
Changes by:	paolo@gcc.gnu.org	2003-10-07 08:40:59

Modified files:
	libstdc++-v3   : ChangeLog 
	libstdc++-v3/config/locale/generic: ctype_members.cc 
	libstdc++-v3/config/locale/gnu: ctype_members.cc 

Log message:
	2003-10-07  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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.1464.2.150&r2=1.1464.2.151
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/locale/generic/ctype_members.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.2.20.1&r2=1.2.20.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libstdc++-v3/config/locale/gnu/ctype_members.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.6.4.2&r2=1.6.4.3


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (15 preceding siblings ...)
  2003-10-07  8:41 ` cvs-commit at gcc dot gnu dot org
@ 2003-10-07  8:48 ` paolo at gcc dot gnu dot org
  2005-02-08  7:22 ` cvs-commit at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: paolo at gcc dot gnu dot org @ 2003-10-07  8:48 UTC (permalink / raw)
  To: gcc-bugs

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


paolo at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.3.2


------- Additional Comments From paolo at gcc dot gnu dot org  2003-10-07 08:48 -------
Fixed for 3.3.2 too!


^ permalink raw reply	[flat|nested] 19+ messages in thread

* [Bug libstdc++/11740] ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask.
  2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
                   ` (16 preceding siblings ...)
  2003-10-07  8:48 ` paolo at gcc dot gnu dot org
@ 2005-02-08  7:22 ` cvs-commit at gcc dot gnu dot org
  17 siblings, 0 replies; 19+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-08  7:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-07 20:34 -------
Subject: Bug 11740

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	green@gcc.gnu.org	2005-02-07 20:34:18

Modified files:
	libjava        : ChangeLog 
	libjava/gnu/java/nio/charset: ISO_8859_1.java Provider.java 
	                              US_ASCII.java UTF_16.java 
	                              UTF_16BE.java UTF_16LE.java 
	                              UTF_8.java 

Log message:
	2005-02-07  Robert Schuster  <thebohemian@gmx.net>
	
	* gnu/java/nio/charset/ISO_8859_1.java,
	gnu/java/nio/charset/US_ASCII.java,
	gnu/java/nio/charset/UTF_16.java,
	gnu/java/nio/charset/UTF_16_LE.java,
	gnu/java/nio/charset/UTF_16_BE.java,
	gnu/java/nio/charset/UTF_8.java: Fixed canonical names
	and aliases according to
	"http://www.iana.org/assignments/character-sets",
	"http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html"
	and "http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL".
	* gnu/java/nio/charset/Provider.java: Made charset lookup
	case-insensitive which fixes bug #11740.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3307&r2=1.3308
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/ISO_8859_1.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/Provider.java.diff?cvsroot=gcc&r1=1.1&r2=1.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/US_ASCII.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/UTF_16.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/UTF_16BE.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/UTF_16LE.java.diff?cvsroot=gcc&r1=1.2&r2=1.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/java/nio/charset/UTF_8.java.diff?cvsroot=gcc&r1=1.2&r2=1.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11740


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2005-02-07 20:34 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-31  9:04 [Bug libstdc++/11740] New: ctype<wchar_t>::do_is(mask, wchar_t) doesn't handle multiple bits in mask peturr02 at ru dot is
2003-07-31  9:04 ` [Bug libstdc++/11740] " peturr02 at ru dot is
2003-08-01  9:00 ` peturr02 at ru dot is
2003-08-23 17:15 ` pinskia at gcc dot gnu dot org
2003-10-01 21:28 ` paolo at gcc dot gnu dot org
2003-10-06 16:44 ` bkoz at gcc dot gnu dot org
2003-10-06 16:51 ` peturr02 at ru dot is
2003-10-06 18:38 ` paolo at gcc dot gnu dot org
2003-10-06 18:53 ` peturr02 at ru dot is
2003-10-06 18:56 ` paolo at gcc dot gnu dot org
2003-10-06 19:03 ` peturr02 at ru dot is
2003-10-06 19:13 ` paolo at gcc dot gnu dot org
2003-10-06 19:43 ` paolo at gcc dot gnu dot org
2003-10-06 19:45 ` pinskia at gcc dot gnu dot org
2003-10-06 22:33 ` cvs-commit at gcc dot gnu dot org
2003-10-06 22:39 ` pinskia at gcc dot gnu dot org
2003-10-07  8:41 ` cvs-commit at gcc dot gnu dot org
2003-10-07  8:48 ` paolo at gcc dot gnu dot org
2005-02-08  7:22 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).