Show
Ignore:
Timestamp:
05/13/10 13:01:06 (5 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/jpeg/ReaderWriterJPEG.cpp

    r10963 r11428  
    853853            if (fileName.empty()) return ReadResult::FILE_NOT_FOUND; 
    854854 
    855             std::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary); 
     855            osgDB::ifstream istream(fileName.c_str(), std::ios::in | std::ios::binary); 
    856856            if(!istream) return ReadResult::ERROR_IN_READING_FILE; 
    857857            ReadResult rr = readJPGStream(istream); 
     
    873873            if (!acceptsExtension(ext)) return WriteResult::FILE_NOT_HANDLED; 
    874874 
    875             std::ofstream fout(fileName.c_str(), std::ios::out | std::ios::binary); 
     875            osgDB::ofstream fout(fileName.c_str(), std::ios::out | std::ios::binary); 
    876876            if(!fout) return WriteResult::ERROR_IN_WRITING_FILE; 
    877877