Update of /cvsroot/openvrml/openvrml/mozilla-plugin/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23521/mozilla-plugin/src
Modified Files:
openvrml.cpp
Log Message:
Set the command channel encoding to null (i.e., no encoding).
Index: openvrml.cpp
===================================================================
RCS file: /cvsroot/openvrml/openvrml/mozilla-plugin/src/openvrml.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -d -r1.32 -r1.33
*** openvrml.cpp 15 May 2006 05:51:59 -0000 1.32
--- openvrml.cpp 18 May 2006 22:20:47 -0000 1.33
***************
*** 1152,1155 ****
--- 1152,1169 ----
this->command_channel = g_io_channel_unix_new(standard_input);
if (!this->command_channel) { throw std::bad_alloc(); }
+ const GIOStatus status =
+ g_io_channel_set_encoding(this->command_channel,
+ 0, // binary (no encoding)
+ &error);
+ if (status != G_IO_STATUS_NORMAL) {
+ if (error) {
+ g_critical(error->message);
+ g_error_free(error);
+ }
+ // XXX
+ // XXX Should probably throw here instead.
+ // XXX
+ return;
+ }
this->request_channel = g_io_channel_unix_new(standard_output);
|