From 2415a8d138d1cb54add29078fb395c615972967a Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Sat, 23 Jan 2021 14:46:16 +0200 Subject: [PATCH] Use c-locale with std::istream --- src/osgPlugins/dae/daeReader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/dae/daeReader.cpp b/src/osgPlugins/dae/daeReader.cpp index 839c5fc05..59d650ac4 100644 --- a/src/osgPlugins/dae/daeReader.cpp +++ b/src/osgPlugins/dae/daeReader.cpp @@ -292,6 +292,8 @@ bool daeReader::convert( std::istream& fin ) // set fileURI to null device const std::string fileURI("from std::istream"); + fin.imbue(std::locale::classic()); + // get the size of the file and rewind fin.seekg(0, std::ios::end); unsigned long length = static_cast(fin.tellg());