From 447e53aafbbeb2b2b4785d3b4e85171a9c12a104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Thu, 6 Mar 2014 23:08:09 +0000 Subject: [PATCH 2/9] Use binary mode for dbus daemon https://bugs.freedesktop.org/show_bug.cgi?id=75863 --- bus/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bus/main.c b/bus/main.c index e060baa..d83bf0d 100644 --- a/bus/main.c +++ b/bus/main.c @@ -29,6 +29,7 @@ #include #include #include +#include #ifdef HAVE_SIGNAL_H #include #endif @@ -373,6 +374,12 @@ main (int argc, char **argv) dbus_bool_t print_pid; BusContextFlags flags; +#ifdef DBUS_WIN32 + _setmode (_fileno (stdin), _O_BINARY); + _setmode (_fileno (stdout), _O_BINARY); + _setmode (_fileno (stderr), _O_BINARY); +#endif + if (!_dbus_string_init (&config_file)) return 1; -- 1.8.4