Skip to content

Commit 2415a8d

Browse files
unelssonrobertosfield
authored andcommitted
Use c-locale with std::istream
1 parent cfe83cf commit 2415a8d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/osgPlugins/dae/daeReader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,8 @@ bool daeReader::convert( std::istream& fin )
292292
// set fileURI to null device
293293
const std::string fileURI("from std::istream");
294294

295+
fin.imbue(std::locale::classic());
296+
295297
// get the size of the file and rewind
296298
fin.seekg(0, std::ios::end);
297299
unsigned long length = static_cast<unsigned long>(fin.tellg());

0 commit comments

Comments
 (0)