From: Braden M. <br...@us...> - 2006-12-06 01:21:41
|
Update of /cvsroot/openvrml/openvrml/examples In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11541/examples Modified Files: Tag: OpenVRML-0_16-BRANCH sdl_viewer.cpp Log Message: Pass ios_base::binary when opening arbitrary (i.e., possibly not text) files. Windows requires this. Index: sdl_viewer.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/examples/sdl_viewer.cpp,v retrieving revision 1.10.2.2 retrieving revision 1.10.2.3 diff -C2 -d -r1.10.2.2 -r1.10.2.3 *** sdl_viewer.cpp 5 Dec 2006 21:15:09 -0000 1.10.2.2 --- sdl_viewer.cpp 6 Dec 2006 01:21:39 -0000 1.10.2.3 *************** *** 149,153 **** resource_istream(&this->buf_) { ! if (!this->buf_.open(path.c_str(), ios_base::in)) { this->setstate(ios_base::failbit); } --- 149,154 ---- resource_istream(&this->buf_) { ! if (!this->buf_.open(path.c_str(), ! ios_base::in | ios_base::binary)) { this->setstate(ios_base::failbit); } |