From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ralf Fassel Newsgroups: gmane.emacs.bugs Subject: Re: `print' does not print Date: Sat, 23 Mar 2002 18:10:55 +0100 Organization: Akustik Technologie Goettingen Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <15516.46879.923082.962198@jupiter.akutech-local.de> References: <200203202019.g2KKJfs4410490@jupiter.akutech-local.de> <2593-Fri22Mar2002121734+0200-eliz@is.elta.co.il> <15515.2661.133668.691007@jupiter.akutech-local.de> <3791-Fri22Mar2002135807+0200-eliz@is.elta.co.il> <15515.15905.64808.177966@jupiter.akutech-local.de> <2110-Fri22Mar2002190057+0200-eliz@is.elta.co.il> <15515.28200.228210.321561@jupiter.akutech-local.de> <1659-Fri22Mar2002203525+0200-eliz@is.elta.co.il> <15515.33581.247374.275450@jupiter.akutech-local.de> <1190-Fri22Mar2002221156+0200-eliz@is.elta.co.il> <15515.44484.750836.448899@jupiter.akutech-local.de> <1858-Sat23Mar2002105421+0200-eliz@is.elta.co.il> <15516.36608.412531.852176@jupiter.akutech-local.de> <1225-Sat23Mar2002184830+0200-eliz@is.elta.co.il> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1016904207 15664 127.0.0.1 (23 Mar 2002 17:23:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 23 Mar 2002 17:23:27 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16opEl-00044P-00 for ; Sat, 23 Mar 2002 18:23:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16opEk-0002Pm-00; Sat, 23 Mar 2002 12:23:26 -0500 Original-Received: from mail.t-intra.de ([62.156.146.210]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16op2s-0001ZK-00 for ; Sat, 23 Mar 2002 12:11:10 -0500 Original-Received: from jupiter.akutech-local.de ([217.84.231.161]) by mail.t-intra.de with Microsoft SMTPSVC(5.5.1877.507.50); Sat, 23 Mar 2002 18:11:03 +0100 Original-Received: (from ralf@localhost) by jupiter.akutech-local.de (8.11.1/8.11.1) id g2NHAun4594894; Sat, 23 Mar 2002 18:10:56 +0100 (MET) Original-To: Eli Zaretskii In-Reply-To: <1225-Sat23Mar2002184830+0200-eliz@is.elta.co.il> Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:114 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:114 * Eli Zaretskii | 9 is EBADF, AFAIK, so it might mean that the file handle is invalid. Yup, that's correct, errno 9 is EBADF. | But OTOH, you said that invoking fwrite from GDB works correctly, so | I'm confused. Breakpoint 3, printchar (ch=10, fun=273515572) at print.c:333 333 fwrite (str, 1, len, stdout); (gdb) p str $8 = "\n\000\000" (gdb) next 1 334 noninteractive_need_newline = 1; (gdb) call fwrite (str, 1, len, (&__iob[1])) 2 $9 = 1 (gdb) At `1' I would have expected to see the newline printed as a result from the `next' command , at `2' the newline ist printed as a result of the gdb `call'. This is what I referred to as `fwrite works when called from gdb'. I can even muck with the str: (gdb) set str = "ho\n" (gdb) set len = 3 (gdb) p str $29 = "ho\n" (gdb) call fwrite (str, 1, len, (&__iob[1])) ho $30 = 3 I'm trying the CVS gcc version, though this will take some time, naturally. R' _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://mail.gnu.org/mailman/listinfo/bug-gnu-emacs