From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4a8f5dee0a8d8ba7be23785692dd2317@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: Error reporting (Was: [9fans] GNU Make) Date: Thu, 3 Jun 2004 15:01:47 +0100 From: rog@vitanuova.com In-Reply-To: <4b34059e61c4f6071f83af2fb750cfe3@proxima.alt.za> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 92f812dc-eacd-11e9-9e20-41e7f4b1d025 > you return the %r chunk and then hash it into an associative array of translated messages, indexed by hash. no you couldn't, 'cos the kernel adds a filename for some error messages. was there a good reason why the filename was put in front of the error message rather than vice versa? it seems odd - it means you have to parse the error message, rather than just doing a strncmp, and you don't have to worry too much about the filename being truncated at the end.