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/imageio/ReaderWriterImageIO.cpp

    r10855 r11428  
    11831183        // Only here to help test istream backend. The file version is better because  
    11841184        // the filenname.extension could potentially be used by ImageIO to hint what the format type is. 
    1185         std::ifstream istream(full_file_name.c_str(), std::ios::in | std::ios::binary); 
     1185        osgDB::ifstream istream(full_file_name.c_str(), std::ios::in | std::ios::binary); 
    11861186        if(!istream) return ReadResult::FILE_NOT_HANDLED; 
    11871187        ReadResult read_result = readImage(istream); 
     
    12751275        // Only here to help test ostream backend. The file version is better because  
    12761276        // the filenname.extension could potentially be used by ImageIO to hint what the format type is. 
    1277         std::ofstream fout(file_name.c_str(), std::ios::out | std::ios::binary); 
     1277        osgDB::ofstream fout(file_name.c_str(), std::ios::out | std::ios::binary); 
    12781278        if(!fout) return WriteResult::ERROR_IN_WRITING_FILE; 
    12791279        return writeImage(osg_image, fout, the_options);