From f391b0ff2c7fb7ff7cf76359ab162dd05de5046c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 17 Nov 2005 15:18:48 +0000 Subject: [PATCH] From Toshiyuki Takahei, added #pragam to avoid build problem with special characters. From Robert Osfield, added #if _MSC_VER to restrict pragma usage to just VisualStudio, and added comment explaining all the extra parsing code in osgversion. --- applications/osgversion/osgversion.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/applications/osgversion/osgversion.cpp b/applications/osgversion/osgversion.cpp index 34ab01157..f9713a3ec 100644 --- a/applications/osgversion/osgversion.cpp +++ b/applications/osgversion/osgversion.cpp @@ -7,6 +7,14 @@ #include #include +// the majority of the application is dedicated to building the +// current contribitors list by parsing the ChangeLog, it just takes +// one line in the main itself to report the version number. + +#if defined(_MSC_VER) + #pragma setlocale("C") +#endif + typedef std::pair NamePair; typedef std::map NameMap; typedef std::vector< std::string > Words;