From e6d4d99edb4dd71e0455b7fc8a303aaf21a4c299 Mon Sep 17 00:00:00 2001 From: "Konstantin S. Matveyev" Date: Wed, 10 Aug 2016 12:58:38 +0100 Subject: [PATCH] Fixed filename encoding bug --- src/osgDB/OutputStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgDB/OutputStream.cpp b/src/osgDB/OutputStream.cpp index 4132ff93f..41e72ae55 100644 --- a/src/osgDB/OutputStream.cpp +++ b/src/osgDB/OutputStream.cpp @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -558,7 +558,7 @@ void OutputStream::writeImage( const osg::Image* img ) if ( isBinary() ) { std::string fullPath = osgDB::findDataFile( img->getFileName() ); - std::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary ); + osgDB::ifstream infile( fullPath.c_str(), std::ios::in|std::ios::binary ); if ( infile ) { infile.seekg( 0, std::ios::end );