From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24276 invoked by alias); 4 Nov 2011 18:31:55 -0000 Received: (qmail 24266 invoked by uid 22791); 4 Nov 2011 18:31:54 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Nov 2011 18:31:41 +0000 From: "gotom at debian dot or.jp" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/1190] fgetc()/fread() behaviour is not POSIX compliant Date: Fri, 04 Nov 2011 18:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: gotom at debian dot or.jp X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC AssignedTo Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00004.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=1190 GOTO Masanori changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gotom at debian dot or.jp AssignedTo|gotom at debian dot or.jp |drepper.fsp at gmail dot | |com --- Comment #8 from GOTO Masanori 2011-11-04 18:31:35 UTC --- It looks like "end-of-file" condition is cleared when gets() called (which should be preserved according to the standard), like: #include int main(void) { char buf[100]; gets(buf); // We need to type ^D gets(buf); // We need to type ^D but the stream already received ^D (end-of-file condition) } -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.