libstdc++/2345
Nathan Neulinger
nneul@umr.edu
Thu Apr 12 10:54:00 GMT 2001
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2345&database=gcc
What's the status on this? I have yet to hear much of anything back on
this bug report, and it is 100% reproducible every time I build gcc on
solaris 2.6 or 2.7.
I'm referring to my bug report about cin.getline not functioning
properly on solaris, where it requires hitting enter more than once, and
only reading a single character of the typed (or piped) in string.
The .ii and other files were attached to the bug report.
----------
I am running the latest (03/20/01) cvs for the 3.0 branch. The following
code does not work properly on solaris builds. You have
to hit enter twice,
and it only gets the first character of the entered
string.
---cut---
#include <iostream.h>
int main() {
char str[50];
while (cin.getline(str,40))
cout << "string = \"" << str << "\"" << endl;
}
---cut---
---run on sol 2.7---
arstest(37)> ./getln
fred
string = "f"
---cut---
or
---run on sol 2.7 piped---
arstest(40)> echo fred | ./getln
string = "f"
arstest(41)>
---
---run on linux and any other box---
infinity(97)>./getln
fred
string = "fred"
infinity(98)>
---cut---
I have this problem on sol 2.6, sol 2.7, but not on
HP-UX 10.20, 11.X, or
linux.
GCC is built with binutils 2.10.1.0.7, with the
following options:
---
#!/bin/sh
# This file was generated automatically by configure.
Do not edit.
# This directory was configured as follows:
/afs/umr.edu/software/egcs3/src/gcc-latest/configure
--with-gcc-version-trigger=
/afs/.umr.edu/software/egcs3/src/gcc/gcc/version.c
--host=sparc-sun-solaris2.7 -
-prefix=/afs/umr.edu/software/egcs3/install/solaris27
--with-gnu-as
--with-gnu-l
d --disable-nls --disable-checking --disable-shared
--disable-libtool-lock
--wit
h-local-prefix=/afs/umr.edu/software/egcs3/install/solaris27/local
--enable-vers
ion-specific-runtime-libs --norecursion
# using "mh-frag"
---
I believe this was reported fixed in bug number 1620,
but it still occurs
for me, and from the looks of the bug report, was also
still occuring for
the person who reported it then but the problem was
closed regardless.
Any suggestions? I've attached the .ii.bz2 file.
I will be more than happy to provide access to my
systems to debug this, as there
is no way I can put 3.0 into production if this is
still broke when 3.0 is released. Right
now
I can barely get people to test the snapshot, since
such a basic function doesn't
work right.
-------------
-- Nathan
------------------------------------------------------------
Nathan Neulinger EMail: nneul@umr.edu
University of Missouri - Rolla Phone: (573) 341-4841
Computing Services Fax: (573) 341-4216
More information about the Gcc-bugs
mailing list