From: Braden M. <br...@us...> - 2006-12-06 01:21:41
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11541/src/libopenvrml/openvrml Modified Files: Tag: OpenVRML-0_16-BRANCH browser.cpp Log Message: Pass ios_base::binary when opening arbitrary (i.e., possibly not text) files. Windows requires this. Index: browser.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/browser.cpp,v retrieving revision 1.190.2.4 retrieving revision 1.190.2.5 diff -C2 -d -r1.190.2.4 -r1.190.2.5 *** browser.cpp 5 Dec 2006 21:15:10 -0000 1.190.2.4 --- browser.cpp 6 Dec 2006 01:21:39 -0000 1.190.2.5 *************** *** 5832,5836 **** * // to read data from a stream that cannot provide it. * // ! * if (!this->buf_.open(path.c_str(), ios_base::in)) { * this->setstate(ios_base::failbit); * } --- 5832,5837 ---- * // to read data from a stream that cannot provide it. * // ! * if (!this->buf_.open(path.c_str(), ! * ios_base::in | ios_base::binary)) { * this->setstate(ios_base::failbit); * } |