Bug: g_message prints to stdout and not to stderr
- From: Ullrich Hafner <hafner informatik uni-wuerzburg de>
- To: gtk-list redhat com
- Subject: Bug: g_message prints to stdout and not to stderr
- Date: Wed, 10 Feb 1999 09:40:14 +0100 (CET)
I've written a small application that reads the application menu of
GNOME and writes it in Window Maker format to stdout. The output is
included via a pipe in Window Maker's root menu.
On program startup (during the gnome_init() call) I get the following
message (from function gdk_set_locale in file gdkxim.c):
Gdk-Message: locale not supported by C library
Unfortunately, this message is printed to stdout and conflicts with
the stdout pipe. (Currently I'm using another pipe with
grep -v 'Gdk-Message' as a workaround)
I don't know whether this is a bug or a feature, but IMHO warnings and
messages of the GTK+ libraries should use stderr for output.
If this is an intended feature: is there a way (configure option or
system call) to avoid such an output? I think that using stdin/stdout
for pipes is a common UNIX feature...
P.S.: I'm using GTK+1.1.15
Ullrich Hafner <firstname.lastname@example.org>, http://www.bigfoot.com/~uhafner
] [Thread Prev