[Wayland-bugs] [Bug 73339] New: libwayland: the library should not print anything to stderr

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 6 16:14:18 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=73339

          Priority: medium
            Bug ID: 73339
          Assignee: wayland-bugs at lists.freedesktop.org
           Summary: libwayland: the library should not print anything to
                    stderr
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: nfxjfg at gmail.com
          Hardware: Other
            Status: NEW
           Version: unspecified
         Component: wayland
           Product: Wayland

For example, the library prints a message to stderr if the XDG_RUNTIME_DIR
envrionment variable is not set:

http://cgit.freedesktop.org/wayland/wayland/tree/src/wayland-client.c?id=cd0dccd01e16fa404e03974d30ded3aebdb1c4bc#n636

There are other cases.

A library should normally never print anything, unless it can be overridden by
setting a message callback. Outputting something, even to stderr, can cause for
terminal programs which want to keep their output clean, especially in case of
non-fatal errors, or for example catch the error message and send it somewhere
else.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20140107/155d7141/attachment.html>


More information about the Wayland-bugs mailing list