From owner-freebsd-arch Mon Jun 26 3: 8:34 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mail.bastard.co.uk (node16292.a2000.nl [24.132.98.146]) by hub.freebsd.org (Postfix) with ESMTP id 5708437B538 for ; Mon, 26 Jun 2000 03:08:31 -0700 (PDT) (envelope-from adrian@bastard.co.uk) Received: from adrian by mail.bastard.co.uk with local (Exim 3.14 #1) id 136VoX-000DAz-00; Mon, 26 Jun 2000 12:08:25 +0200 Date: Mon, 26 Jun 2000 12:08:25 +0200 From: Adrian Chadd To: Alexander Langer Cc: arch@freebsd.org Subject: Re: gettext Message-ID: <20000626120825.T36017@zoe.bastard.co.uk> References: <20000623195641.C16231@cichlids.cichlids.com> <20000624183906.B2843@cichlids.cichlids.com> <20000624204402.A704@freebie.wbnet> <20000625123433.A3296@cichlids.cichlids.com> <20000625173148.N36017@zoe.bastard.co.uk> <20000626102125.B3549@cichlids.cichlids.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000626102125.B3549@cichlids.cichlids.com>; from alex@big.endian.de on Mon, Jun 26, 2000 at 10:21:25AM +0200 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jun 26, 2000, Alexander Langer wrote: > Thus spake Adrian Chadd (adrian@FreeBSD.ORG): > > > person, but the way VMS (and Cisco, and I am a cisco person) reports > > errors makes it very easy to take a flat text syslog output, and parse > > the error lines ..) > > Most error-outputs use strerror(3). > > So maybe add these to strerror(3)? Yes, but you can't guarantee that ENOENT is the same between two given applications. And then, applications can use perror() or errx() or the like to return their own errors, which you'd have to make multi-lingual, and it becomes a nightmare. You could modify strerror() to give multi-lingual errno error strings, but as to each application, who knows .. Adrian -- Adrian Chadd Build a man a fire, and he's warm for the rest of the evening. Set a man on fire and he's warm for the rest of his life. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message