Bug: g_message prints to stdout and not to stderr



Hi,

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...

Best regards,

Ullrich
P.S.: I'm using GTK+1.1.15
-- 
Ullrich Hafner <hafner@bigfoot.de>, http://www.bigfoot.com/~uhafner



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]