This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/8655: Problematic behaviour of std::ends


Hello,

this problems appears on:

1) Redhat Linux 7.2 and 7.3
Output of gcc -v:

Reading specs from 
/usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: ./configure --prefix=/usr/local/gcc-alt-3.2 --enable-shared
Thread model: posix
gcc version 3.2

2) SuSE Linuz 8.0
Output of gcc -v:
  
Reading specs from 
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
Configured with: /root/gcc-3.2/configure 
Thread model: posix
gcc version 3.2

>     Are you really sure, you don't get the null charachter?
>     Nedit displays it as "<soh>" and emacs as "^@".

This is exactly what I get, and this is my problem!
Moreover the C-string is always terminated at the first such character, as 
the output of the example code shows:

String size = 6
C-string size = 5
i = 1
i = 1
2nd string size = 9
2nd C-string size = 5
i = 1_1
i = 1

This behaviour did not exist on earlier versions of gcc, eg. 2.95.x

Kind regards,
Ioannis.


On 20 Nov 2002 reichelt@igpm.rwth-aachen.de wrote:

> Synopsis: Problematic behaviour of std::ends
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: reichelt
> State-Changed-When: Wed Nov 20 05:57:08 2002
> State-Changed-Why:
>     I can't reproduce your problem with gcc 3.2 on i686-pc-linux-gnu.
>     However, you did not specify the exact system configuration
>     (output of gcc -v) and whether any optimization was used or
>     not.
>     
>     Are you really sure, you don't get the null charachter?
>     Nedit displays it as "<soh>" and emacs as "^@".
> 
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8655
> 

-- 
_____________________________________________________________________
Ioannis PAPADOPOULOS  European Laboratory for Particle Physics (CERN)
                      IT Division, Geneva 23, CH-1211 Switzerland
                      office: 513-R-042, mailbox: G09100
                      tel:(+41 22 76) 74672, fax:(+41 22 76) 76830              
                      e-mail: Ioannis.Papadopoulos@cern.ch
                      URL: http://cern.ch/Ioannis.Papadopoulos


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]