public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-11-21  6:51 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2002-11-21  6:51 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marc-oliver.gewaltig, paolo

Synopsis: sync_with_stdio(false) breaks unformatted input

State-Changed-From-To: analyzed->closed
State-Changed-By: paolo
State-Changed-When: Fri Nov 15 00:17:46 2002
State-Changed-Why:
    Fixed for 3.3 and 3.2.2 with:
    http://gcc.gnu.org/ml/gcc-patches/2002-11/msg00899.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399


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

* Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-11-20  1:36 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2002-11-20  1:36 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marc-oliver.gewaltig, nobody, paolo

Synopsis: sync_with_stdio(false) breaks unformatted input

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Wed Nov 13 12:32:05 2002
Responsible-Changed-Why:
    Working (slowly ;) on it...

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399


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

* Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-11-10 10:46 Paolo Carlini
  0 siblings, 0 replies; 7+ messages in thread
From: Paolo Carlini @ 2002-11-10 10:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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

From: Paolo Carlini <pcarlini@unitus.it>
To: gcc-gnats@gcc.gnu.org,  gcc-prs@gcc.gnu.org, 
 marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp,  gcc-bugs@gcc.gnu.org, 
 nobody@gcc.gnu.org
Cc: bkoz <bkoz@redhat.com>
Subject: Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
Date: Sun, 10 Nov 2002 19:46:41 +0100

 Hi,
 
 this is a reduced testcase:
 
 ////
 #include <iostream>
 using namespace std;
 
 int main()
 {
    ios::sync_with_stdio(false);
 
    char c;
 
    cin.get(c);
    cout.put(c);
 
    return 0;
 }
 ////
 
 What happens with current mainline is that a <newline>
 doesn't end the get, whereas this happens with the 'sync'.
 
 Therefore, the issue seems more than vaguely related to
 the obnoxious libstdc++/6745 and all that...
 
 Ciao, Paolo.
 
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399
 


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

* Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-11-04  4:59 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2002-11-04  4:59 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marc-oliver.gewaltig, nobody, paolo

Synopsis: sync_with_stdio(false) breaks unformatted input

Responsible-Changed-From-To: paolo->unassigned
Responsible-Changed-By: paolo
Responsible-Changed-When: Mon Nov  4 04:59:22 2002
Responsible-Changed-Why:
    .

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399


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

* Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-11-04  4:53 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2002-11-04  4:53 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marc-oliver.gewaltig, paolo

Synopsis: sync_with_stdio(false) breaks unformatted input

State-Changed-From-To: feedback->analyzed
State-Changed-By: paolo
State-Changed-When: Mon Nov  4 04:53:11 2002
State-Changed-Why:
    For some utterly misterious reason, today I can reproduce
    the problem, both 3.2.1 and 3.3.
    ---
    paolo:~/Gcc/PRs/v3/Analyzed> a.out
    paolo:~/Gcc/PRs/v3/Analyzed> a.out
    c= a
    b
    c
    <ctrl-d>a
    c=
    
    c= b
    c=
    
    c= c
    c=
    
    c= <ctrl-c>
    ---
    Sorry, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399


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

* Re: libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-11-03 16:09 paolo
  0 siblings, 0 replies; 7+ messages in thread
From: paolo @ 2002-11-03 16:09 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, marc-oliver.gewaltig, nobody, paolo

Synopsis: sync_with_stdio(false) breaks unformatted input

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Sun Nov  3 16:09:14 2002
Responsible-Changed-Why:
    Analyzed.
State-Changed-From-To: open->feedback
State-Changed-By: paolo
State-Changed-When: Sun Nov  3 16:09:14 2002
State-Changed-Why:
    On i686-pc-linux-gnu I cannot reproduce the problem with
    current 3.2.1 pre and 3.3 exp.
    Both with and without 'sync' I get:
    ---
    paolo:~/Gcc/PRs/v3/Analyzed> a.out
    c= a
    a
    c=
    
    c= b
    b
    c=
    
    c= q
    q
    ---
    Could you possibly check-out via CVS a 3.2.1 snapshot?
    Otherwise wait just a few days for the upcoming 3.2.1
    release. Please let us know your findings.
    Thanks, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8399


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

* libstdc++/8399: sync_with_stdio(false) breaks unformatted input
@ 2002-10-30  2:26 marc-oliver.gewaltig
  0 siblings, 0 replies; 7+ messages in thread
From: marc-oliver.gewaltig @ 2002-10-30  2:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8399
>Category:       libstdc++
>Synopsis:       sync_with_stdio(false) breaks unformatted input
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 30 02:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     marc-oliver.gewaltig@hre-ftr.f.rd.honda.co.jp
>Release:        gcc 3.1, gcc 3.2
>Organization:
>Environment:
Solaris 8, Suse Linux 8.0, and probably all others
>Description:
Unformatted input breaks if synchronisation with stdio
is set to false:
istream members
char get()
get(char &)
read(char *, size_t)
will only return on EOF and SIGINT
>How-To-Repeat:
Compile and start the program.
1. the prompt will appear once and get will
   never return. Same applies to other flavours of get
   and read. I did not test getline though.
2.  If sync_with_stdio(false) is removed, the program
   works as expected and shows a prompt after each <RETURN>
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="get-test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="get-test.cpp"

I2luY2x1ZGUgPGNhc3NlcnQ+CiNpbmNsdWRlIDxpb3N0cmVhbT4KCmludCBtYWluKCkKewogIHN0
ZDo6aW9zOjpzeW5jX3dpdGhfc3RkaW8oZmFsc2UpOwoKICBjaGFyIGM7CiAgc3RkOjppc3RyZWFt
ICppbj0mc3RkOjpjaW47CgogIGRvCiAgICB7CgogICAgICBhc3NlcnQoaW4tPmdvb2QoKSk7CiAg
ICAgIGFzc2VydCghaW4tPmZhaWwoKSk7CiAgICAgIGFzc2VydCghIGluLT5lb2YoKSk7CgogICAg
ICBzdGQ6OmNlcnIgPDwgImM9ICI7CiAgICAgIGluLT5nZXQoYyk7CiAgICAgIHN0ZDo6Y2VyciA8
PCBjIDw8IHN0ZDo6ZW5kbDsKCiAgICAgIGFzc2VydChpbi0+Z29vZCgpKTsKICAgICAgYXNzZXJ0
KCFpbi0+ZmFpbCgpKTsKICAgICAgYXNzZXJ0KCEgaW4tPmVvZigpKTsKCQogICAgfXdoaWxlIChj
ICE9ICdxJyk7CiAgcmV0dXJuIDA7Cn0K


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

end of thread, other threads:[~2002-11-15  8:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21  6:51 libstdc++/8399: sync_with_stdio(false) breaks unformatted input paolo
  -- strict thread matches above, loose matches on Subject: below --
2002-11-20  1:36 paolo
2002-11-10 10:46 Paolo Carlini
2002-11-04  4:59 paolo
2002-11-04  4:53 paolo
2002-11-03 16:09 paolo
2002-10-30  2:26 marc-oliver.gewaltig

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