From a531f2bd13ce2c6e698d7dcee0303f0794043d15 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());