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

This commit is contained in:
Robert Osfield
2010-05-13 11:01:06 +00:00
parent 29ea65c12b
commit 4e8f0561ad
20 changed files with 34 additions and 33 deletions

View File

@@ -342,7 +342,7 @@ public:
QuicktimeImportExport importer;
std::ifstream is;
osgDB::ifstream is;
is.open (fileName.c_str(), std::ios::binary | std::ios::in );
is.seekg (0, std::ios::end);
long length = is.tellg();
@@ -424,7 +424,7 @@ public:
if (cur == extmap.end())
return WriteResult::FILE_NOT_HANDLED;
std::ofstream os(fileName.c_str(), std::ios::binary | std::ios::trunc | std::ios::out);
osgDB::ofstream os(fileName.c_str(), std::ios::binary | std::ios::trunc | std::ios::out);
if(os.good())
{
QuicktimeImportExport exporter;