public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/2536] New: standardized formatting of warnings and errors
@ 2006-04-11 23:31 Dave at Yost dot com
2006-04-12 16:17 ` [Bug libc/2536] " drepper at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: Dave at Yost dot com @ 2006-04-11 23:31 UTC (permalink / raw)
To: glibc-bugs
It would be nice if there were a reliable way to grep for errors in the output of make. But this is
unachievable today because every tool that make runs has its own style of reporting errors and
warnings. There should be a standard way.
I propose a new library function:
#define TROUBLE_ERROR "error: "
#define TROUBLE_WARNING "warning: "
extern char* trouble(char* trouble, char* message);
If a TROUBLE_STANDARD environment variable is present, the returned string is prepended with the
first argument. Otherwise, the returned string is the same as the given message.
If the TROUBLE_PREFIXES environment variable is present, it can replace default prefixes as desired. For
example:
export TROUBLE_PREFIXES='~error:~***ERROR: ~warning: ~*WARNING: ~'
where ~ can be any character a la sed replacement.
All gnu commands should be updated to use the new mechanism. In case legacy software is going to
look at the output, and the software requires the exact previous error syntax, full backward
compatibility is retained by not defining the TROUBLE_STANDARD environment variable.
--
Summary: standardized formatting of warnings and errors
Product: glibc
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: Dave at Yost dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=2536
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/2536] standardized formatting of warnings and errors
2006-04-11 23:31 [Bug libc/2536] New: standardized formatting of warnings and errors Dave at Yost dot com
@ 2006-04-12 16:17 ` drepper at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: drepper at redhat dot com @ 2006-04-12 16:17 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From drepper at redhat dot com 2006-04-12 16:17 -------
There is fmtmsg and nobody uses it.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://sourceware.org/bugzilla/show_bug.cgi?id=2536
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-12 16:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-11 23:31 [Bug libc/2536] New: standardized formatting of warnings and errors Dave at Yost dot com
2006-04-12 16:17 ` [Bug libc/2536] " drepper at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).