public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/2302
@ 2001-06-05 18:36 bkoz
  0 siblings, 0 replies; 2+ messages in thread
From: bkoz @ 2001-06-05 18:36 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/2302; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  schmid@snake.iap.physik.tu-darmstadt.de
Cc:  
Subject: Re: libstdc++/2302
Date: 6 Jun 2001 01:33:03 -0000

 Synopsis: Problems with toupper
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: bkoz
 State-Changed-When: Tue Jun  5 18:33:03 2001
 State-Changed-Why:
     I believe this issue is resolved.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2302&database=gcc


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

* Re: libstdc++/2302
@ 2001-05-25 11:56 bkoz
  0 siblings, 0 replies; 2+ messages in thread
From: bkoz @ 2001-05-25 11:56 UTC (permalink / raw)
  To: bkoz; +Cc: gcc-prs

The following reply was made to PR libstdc++/2302; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: bkoz@gcc.gnu.org, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org,
  schmid@snake.iap.physik.tu-darmstadt.de
Cc:  
Subject: Re: libstdc++/2302
Date: 25 May 2001 18:46:39 -0000

 Synopsis: Problems with toupper
 
 Responsible-Changed-From-To: unassigned->bkoz
 Responsible-Changed-By: bkoz
 Responsible-Changed-When: Fri May 25 11:46:39 2001
 Responsible-Changed-Why:
     Responsible.
 State-Changed-From-To: open->feedback
 State-Changed-By: bkoz
 State-Changed-When: Fri May 25 11:46:39 2001
 State-Changed-Why:
     This is the same issue as libstdc++/1704. I don't think this is a bug: please read the detailed commentary in 1704 and let me know what you think.
     
     There were some errors in your code: here's the corrected version. 
     
     Sorry it took me so long to get around to this.
     
     -benjamin
     
     Here:
     
     truct outbuf: public std::streambuf
     {
       virtual int_type overflow (int_type c)
       {
         if (c != traits_type::eof())
           {
     	// does not work at all (characters are discarded).           
     	// c = std::toupper(c, getloc());
     	
     	// does work but does not convert.           
     #if 0	
     	std::use_facet<std::ctype<char> >(getloc()).toupper(c);
     	if (putchar(c) == EOF) 
     	  return traits_type::eof();
     #else
     	char cc = static_cast<char>(c);
     	cc = std::use_facet<std::ctype<char> >(getloc()).toupper(cc);
     	if (putchar(cc) == EOF) 
     	  return traits_type::eof();
     #endif
           }
         return c;
       }
     };
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2302&database=gcc


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

end of thread, other threads:[~2001-06-05 18:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-05 18:36 libstdc++/2302 bkoz
  -- strict thread matches above, loose matches on Subject: below --
2001-05-25 11:56 libstdc++/2302 bkoz

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