Update of /cvsroot/openvrml/openvrml/src/openvrml-player
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20183/src/openvrml-player
Modified Files:
Tag: OpenVRML-0_16-BRANCH
player.cpp
Log Message:
Set the request_channel encoding to none.
Index: player.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/src/openvrml-player/player.cpp,v
retrieving revision 1.1.2.20
retrieving revision 1.1.2.21
diff -C2 -d -r1.1.2.20 -r1.1.2.21
*** player.cpp 8 Apr 2007 16:27:16 -0000 1.1.2.20
--- player.cpp 15 Apr 2007 16:36:32 -0000 1.1.2.21
***************
*** 329,336 ****
: "g_io_channel_set_encoding failure");
}
- error_guard.dismiss();
::request_channel = g_io_channel_unix_new(standard_output);
if (!::request_channel) { throw std::bad_alloc(); }
CURLM * const multi_handle = curl_multi_init();
--- 329,344 ----
: "g_io_channel_set_encoding failure");
}
::request_channel = g_io_channel_unix_new(standard_output);
if (!::request_channel) { throw std::bad_alloc(); }
+ status = g_io_channel_set_encoding(::command_channel,
+ 0, // binary (no encoding)
+ &error);
+ if (status != G_IO_STATUS_NORMAL) {
+ throw std::runtime_error(error
+ ? error->message
+ : "g_io_channel_set_encoding failure");
+ }
+ error_guard.dismiss();
CURLM * const multi_handle = curl_multi_init();
|