Change message system to use fputs instead of write
By default g_log_default_handler always assumes that stdout and stderr are file descriptors 1 and 2. On Win32 this isn't always the case as the win32 API functions AttachConsole and freopen can be used to dynamically attach GUI applications to a console and the file descriptors of stderr and stdout will become different than 1 and 2. Fix it by using fputs with the FILE directly instead of using the file descriptors. https://bugzilla.gnome.org/show_bug.cgi?id=692085
parent
144d38fb
Please register or sign in to comment