Show
Ignore:
Timestamp:
05/13/10 13:01:06 (4 years ago)
Author:
robert
Message:

From Farshid Lashkari, "I modified some plugins to use the osgDB file stream functions in order to support UTF-8 encoded filenames."

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/png/ReaderWriterPNG.cpp

    r11121 r11428  
    365365            if (fileName.empty()) return ReadResult::FILE_NOT_FOUND; 
    366366 
    367             std::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary); 
     367            osgDB::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary); 
    368368            if(!istream) return ReadResult::FILE_NOT_HANDLED; 
    369369            ReadResult rr = readPNGStream(istream); 
     
    383383            if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED; 
    384384 
    385             std::ofstream fout(fileName.c_str(), std::ios::out | std::ios::binary); 
     385            osgDB::ofstream fout(fileName.c_str(), std::ios::out | std::ios::binary); 
    386386            if(!fout) return WriteResult::ERROR_IN_WRITING_FILE; 
    387387