From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23762 invoked by alias); 14 Jan 2002 04:36:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23727 invoked from network); 14 Jan 2002 04:36:19 -0000 Received: from unknown (HELO localhost.cygnus.com) (24.114.42.213) by sources.redhat.com with SMTP; 14 Jan 2002 04:36:19 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 2451B3D1F for ; Sun, 13 Jan 2002 23:36:18 -0500 (EST) Message-ID: <3C426042.8050807@cygnus.com> Date: Sun, 13 Jan 2002 20:36:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: how to format an error? Content-Type: multipart/mixed; boundary="------------060104030403040906010205" X-SW-Source: 2002-01/txt/msg00142.txt.bz2 This is a multi-part message in MIME format. --------------060104030403040906010205 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 283 (no one commented last time, I'll try again). Given the attached, which is the correct way of formatting an error message: This is an error message. this is an error message. This is an error message this is an error message GDB (no suprize) does all of the above :-) Andrew --------------060104030403040906010205 Content-Type: message/rfc822; name="[Fwd: [PATCH] Various source cleanup/enhancements]" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="[Fwd: [PATCH] Various source cleanup/enhancements]" Content-length: 6475 X-Mozilla-Status2: 10000000 Return-Path: Delivered-To: ac131313@localhost.cygnus.com Received: from localhost (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id B44CB3E27 for ; Mon, 3 Dec 2001 18:51:13 -0500 (EST) Received: from pop.cygnus.com by localhost with IMAP (fetchmail-5.8.8) for ac131313@localhost (single-drop); Mon, 03 Dec 2001 18:51:13 -0500 (EST) Received: from sources.redhat.com (sourceware.cygnus.com [209.249.29.67]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id PAA23487 for ; Mon, 3 Dec 2001 15:48:13 -0800 (PST) Received: (qmail 16936 invoked by alias); 3 Dec 2001 23:48:07 -0000 Received: (qmail 16395 invoked from network); 3 Dec 2001 23:48:02 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by sources.redhat.com with SMTP; 3 Dec 2001 23:48:02 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 859993E27 for ; Mon, 3 Dec 2001 18:47:58 -0500 (EST) Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Delivered-To: mailing list gdb@sources.redhat.com Message-ID: <3C0C0F2E.5040500@cygnus.com> Date: Mon, 03 Dec 2001 18:47:58 -0500 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.3) Gecko/20011020 X-Accept-Language: en-us MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: [Fwd: [PATCH] Various source cleanup/enhancements] Content-Type: multipart/mixed; boundary="------------050407040704070407020306" This is a multi-part message in MIME format. --------------050407040704070407020306 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 110 What is the correct format of an error message string? The attached, from binutils is interesting. Andrew --------------050407040704070407020306 Content-Type: message/rfc822; name="Re: [PATCH] Various source cleanup/enhancements" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: [PATCH] Various source cleanup/enhancements" Content-length: 3909 X-Mozilla-Status2: 00000000 Return-Path: Delivered-To: ac131313@localhost.cygnus.com Received: from localhost (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 8D1EA3E23 for ; Mon, 3 Dec 2001 17:35:56 -0500 (EST) Received: from pop.cygnus.com by localhost with IMAP (fetchmail-5.8.8) for ac131313@localhost (single-drop); Mon, 03 Dec 2001 17:35:56 -0500 (EST) Received: from sources.redhat.com (sourceware.cygnus.com [209.249.29.67]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with SMTP id OAA13973 for ; Mon, 3 Dec 2001 14:34:38 -0800 (PST) Received: (qmail 23251 invoked by alias); 3 Dec 2001 22:34:32 -0000 Received: (qmail 23227 invoked from network); 3 Dec 2001 22:34:31 -0000 Received: from unknown (HELO mta06ps.bigpond.com) (144.135.25.138) by sources.redhat.com with SMTP; 3 Dec 2001 22:34:31 -0000 Received: from bubble.local ([144.135.25.75]) by mta06ps.bigpond.com (Netscape Messaging Server 4.15) with SMTP id GNSHOR00.ILU for ; Tue, 4 Dec 2001 08:41:15 +1000 Received: from 144.136.176.14 ([144.136.176.14]) by PSMAM03.mailsvc.email.bigpond.com(MailRouter V2.9k 8398/25297244); 04 Dec 2001 08:34:25 Received: (qmail 9252 invoked by uid 179); 3 Dec 2001 22:34:24 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Delivered-To: mailing list binutils@sources.redhat.com Date: Tue, 4 Dec 2001 09:04:24 +1030 From: Alan Modra To: Eric Christopher Cc: Thiemo Seufer , binutils@sources.redhat.com Subject: Re: [PATCH] Various source cleanup/enhancements Message-ID: <20011204090424.O1047@bubble.sa.bigpond.net.au> Mail-Followup-To: Eric Christopher , Thiemo Seufer , binutils@sources.redhat.com References: <20011203103725.N487@rembrandt.csv.ica.uni-stuttgart.de> <1007416024.1421.1.camel@ghostwheel.cygnus.com> <20011204082728.M1047@bubble.sa.bigpond.net.au> <1007416787.1421.11.camel@ghostwheel.cygnus.com> Mime-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.3.17i In-Reply-To: <1007416787.1421.11.camel@ghostwheel.cygnus.com>; from echristo@redhat.com on Mon, Dec 03, 2001 at 01:59:46PM -0800 Content-Type: text/plain; charset=us-ascii Content-length: 1116 On Mon, Dec 03, 2001 at 01:59:46PM -0800, Eric Christopher wrote: > On Mon, 2001-12-03 at 13:57, Alan Modra wrote: > > On Mon, Dec 03, 2001 at 01:47:04PM -0800, Eric Christopher wrote: > > > Ok except for these. Make sure they are capitals before checking in :) > > > > Err, the standard (from gcc) for error messages is as Thiemo had it. > > This text is prefixed with "Error: " so it doesn't start a sentence, and > > thus should not start with a capital. > > Ah ha. Thanks :) BTW, I'm not too sure about the rationale I gave regarding not starting a sentence. That opinion was just parroted from someone on the gcc list. I'd say the text following the colon _is_ the start of a new sentence, but I don't want to get into grammar wars. :) http://www.gnu.org/prep/standards_15.html#SEC15 says "The string message should not begin with a capital letter when it follows a program name and/or file name. Also, it should not end with a period. Error messages from interactive programs, and other messages such as usage messages, should start with a capital letter. But they should not end with a period." --------------050407040704070407020306-- --------------060104030403040906010205--