From 1a080dfa6ab984403ea95ef53228de70aa169213 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 27 Feb 2012 09:50:47 +0000 Subject: [PATCH] Added fin.imbue(std::locale::classic()); to avoid problems with parsing of .obj files --- src/osgPlugins/obj/ReaderWriterOBJ.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osgPlugins/obj/ReaderWriterOBJ.cpp b/src/osgPlugins/obj/ReaderWriterOBJ.cpp index ad6959fae..9c01c81ba 100644 --- a/src/osgPlugins/obj/ReaderWriterOBJ.cpp +++ b/src/osgPlugins/obj/ReaderWriterOBJ.cpp @@ -887,6 +887,8 @@ osgDB::ReaderWriter::ReadResult ReaderWriterOBJ::readNode(std::istream& fin, con { if (fin) { + fin.imbue(std::locale::classic()); + obj::Model model; model.readOBJ(fin, options);