From: Braden M. <br...@us...> - 2006-12-06 01:22:05
|
Update of /cvsroot/openvrml/openvrml/examples In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv11576/examples Modified Files: 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.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** sdl_viewer.cpp 5 Dec 2006 21:16:21 -0000 1.13 --- sdl_viewer.cpp 6 Dec 2006 01:22:04 -0000 1.14 *************** *** 143,147 **** resource_istream(&this->buf_) { ! if (!this->buf_.open(path.c_str(), ios_base::in)) { this->setstate(ios_base::failbit); } --- 143,148 ---- resource_istream(&this->buf_) { ! if (!this->buf_.open(path.c_str(), ! ios_base::in | ios_base::binary)) { this->setstate(ios_base::failbit); } |