Thanks Chuck. Curious windows problems, the workaround doesn't look o problematic so now merged and submitted to svn/trunk. Cheers, Robert.
On Fri, Mar 19, 2010 at 8:21 PM, Chuck Seberino <[email protected]> wrote: > I have a fix for the reading code in > trunk/src/osgPlugins/gz/ReaderWriterGZ.cpp. It seems that the > std::istream::readsome method on windows is a no-op (for files. After much > head scratching and research I was able to figure out what was going on. I > am submitting a fix to replace readsome with read() and gcount(). This > change is for all platforms. The previous implementation works fine under > linux and OSX, so if you would rather keep things the way they are you can > just #ifdef for non-WIN32. > > I also added openmode flags to the ifstream constructor, since they were > needed to get proper reading as well as a typo fix. > > > > > Let me know if you have any questions. > > Chuck > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
