Bryce Harrington wrote:
On Fri, 26 Mar 2004, bulia byak wrote:
I applied your first three patches, thanks.
- When drawing a polygon (the star) numbers in the points element are
locale dependent, strange the star is drawn correctly. 2. The root document with and height are also locale dendent.
Yes, and probably other places, too. What we need to do is just search for "printf" and see if the output of it goes into SVG, and if so, replace them (some printfs print debug messages on screen, you can leave them alone). Now that you know what to do, it should be easy :)
The printfs that print debug messages should probably be replaced with g_message() or g_warning() calls, as appropriate.
Bryce
Bryce,
I was thinking, wouldn't it be nice if Inkscape had its own debug output console, like many apps have? This is almost unnecessary on Unix, but important on platforms that do not have pty-like consoles.
How about adding a couple of methods to the Inkscape class (since all code pieces in Inkscape should have it as their parent), like inkscape->error("format", ...) and inkscape->warning("format", ...); .
We could use this to redirect the debug output to either the same Glib g_message() and g_error() output we have now, or to a separate Gui. A simple text console similar to Mozilla's Java Console would be excellent. We could redirect many types of informational messages to it. And it would be in a format that users could easily email to us in case of problems.
This might be a good task for a new contributor to Inkscape.
Bob
Bob