Your message dated Fri, 15 Aug 2003 17:32:35 -0500 with message-id <[EMAIL PROTECTED]> and subject line closing stupid bug has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 15 Aug 2003 19:00:04 +0000 >From [EMAIL PROTECTED] Fri Aug 15 14:00:02 2003 Return-path: <[EMAIL PROTECTED]> Received: from polaris.galacticasoftware.com [206.45.95.222] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 19njnt-00062w-00; Fri, 15 Aug 2003 14:00:02 -0500 Received: from polaris.galacticasoftware.com (localhost [127.0.0.1]) by polaris.galacticasoftware.com (8.12.3/8.12.3/Debian-6.4) with ESMTP id h7FIp4II025456 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for <[EMAIL PROTECTED]>; Fri, 15 Aug 2003 13:51:05 -0500 Received: (from [EMAIL PROTECTED]) by polaris.galacticasoftware.com (8.12.3/8.12.3/Debian-6.4) id h7FIp4SS011168 for [EMAIL PROTECTED]; Fri, 15 Aug 2003 13:51:04 -0500 From: Adam Majer <[EMAIL PROTECTED]> Date: Fri, 15 Aug 2003 13:51:04 -0500 To: [EMAIL PROTECTED] Subject: ifstream.bad() ertc... broken Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline User-Agent: Mutt/1.3.28i Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_01,HAS_PACKAGE,USER_AGENT_MUTT version=2.53-bugs.debian.org_2003_07_20 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_07_20 (1.174.2.15-2003-03-30-exp) --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Package: libstdc++-5 Severity: important For some reason, files that don't exist are not reported as bad in something like ifstream file("my crap file that does not exist"); file.bad(); <== returns false! I've attached a test program that demonstrates it. It is related to the problem in Aria http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=204417 - Adam --0OAP2g/MAC+5xKAE Content-Type: text/x-c++src; charset=us-ascii Content-Disposition: attachment; filename="test.cpp" #include <fstream> #include <iostream> #include <string> using std::ios; using std::endl; using std::iostream; using std::ifstream; using std::string; using std::cerr; int main() { std::string filename("cRAP"); cerr << "reading giu info from " << filename << endl; ifstream infile(filename.c_str(), ios::in); if(infile.bad()) return false; cerr << " bad file? " << infile.bad() << endl; if(infile.eof()) return false; while(!infile.eof()) { string line; getline(infile, line, '\n'); cerr << "Got line: " << line << endl; } cerr << "finished readning giu info from " << filename << endl; return 0; } --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=test reading giu info from cRAP bad file? 0 Got line: Got line: --0OAP2g/MAC+5xKAE-- --------------------------------------- Received: (at 205623-done) by bugs.debian.org; 15 Aug 2003 22:40:05 +0000 >From [EMAIL PROTECTED] Fri Aug 15 17:40:02 2003 Return-path: <[EMAIL PROTECTED]> Received: from polaris.galacticasoftware.com [206.45.95.222] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 19nnEo-0007sg-00; Fri, 15 Aug 2003 17:40:02 -0500 Received: from polaris.galacticasoftware.com (localhost [127.0.0.1]) by polaris.galacticasoftware.com (8.12.3/8.12.3/Debian-6.4) with ESMTP id h7FMWaII027979 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for <[EMAIL PROTECTED]>; Fri, 15 Aug 2003 17:32:36 -0500 Received: (from [EMAIL PROTECTED]) by polaris.galacticasoftware.com (8.12.3/8.12.3/Debian-6.4) id h7FMWZQ3032137 for [EMAIL PROTECTED]; Fri, 15 Aug 2003 17:32:35 -0500 From: Adam Majer <[EMAIL PROTECTED]> Date: Fri, 15 Aug 2003 17:32:35 -0500 To: [EMAIL PROTECTED] Subject: closing stupid bug Message-ID: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_01,USER_AGENT_MUTT version=2.53-bugs.debian.org_2003_8_15 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_15 (1.174.2.15-2003-03-30-exp) I'm closing this bug since it is apparently the correct behaviour of stdc++. Apparently if a contructon fails to open, it doesn't mean that bad() is true... Blah.... - Adam