GNOME Bugzilla – Bug 769859
structural logging does not support colored output to Windows console
Last modified: 2016-12-05 04:43:31 UTC
Because currently coloring is achieved by inserting terminal codes that Windows console does not support and displays simply as weird characters. Outputting colored text can be achieved using two methods: 1) previous = GetConsoleScreenBufferInfo() -> SetConsoleTextAttribute(color) -> output text -> SetConsoleTextAttribute (previous) This requires locking, otherwise multithreaded output will be a mess (more so than it already is) 2) WriteConsoleOutput() This modifies console buffer directly and writes rectangular blocks into rectangular buffer space (no built-in line wrapping support). GStreamer uses (1). Another thing of note: it might be desirable to be able to force glib to do coloring using terminal codes. This is useful when piping the output to `less' or other programs that *do* understand these codes.
Created attachment 337828 [details] [review] gtkicontheme: check if the context quark string is not null On windows you might not have a theme installed by default which means that when trying to create the context quark it will fail. If then we try to replace a NULL key in the hash table it will crash.
Attachment 337828 [details] pushed as a12b691 - gtkicontheme: check if the context quark string is not null
Sorry attached to the wrong bug report :(
*** This bug has been marked as a duplicate of bug 775468 ***