From Chuck Seberino, "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.
From Chuck Seberino, "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."


omega-hub/osg,omega-hub/osg,ntoand/osg,XiaoCC/osg,XiaoCC/osg,artoolkit/osg,artoolkit/osg,omega-hub/osg,koshman86/osg,ntoand/osg,XiaoCC/osg,koshman86/osg,koshman86/osg,stmh/osg,stmh/osg,XiaoCC/osg,koshman86/osg,artoolkit/osg,ghub/osg,stmh/osg,ntoand/osg,ghub/osg,ghub/osg,artoolkit/osg,ghub/osg,stmh/osg,XiaoCC/osg,stmh/osg,omega-hub/osg,ntoand/osg