[geos-commits] [SCM] geos branch master updated. 999b297244a5e04f31b35163506532873fa7963a

git at osgeo.org git at osgeo.org
Tue Jul 18 04:11:31 PDT 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "geos".

The branch, master has been updated
       via  999b297244a5e04f31b35163506532873fa7963a (commit)
      from  049ae7afb895f78f64d98a782256b9d05e064393 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 999b297244a5e04f31b35163506532873fa7963a
Author: Tamas Szekeres <szekerest at gmail.com>
Date:   Tue Jul 18 11:46:37 2017 +0200

    Fix multithreading issue for MSVC caused by setlocale

diff --git a/src/io/CLocalizer.cpp b/src/io/CLocalizer.cpp
index ff2352d..b4e4713 100644
--- a/src/io/CLocalizer.cpp
+++ b/src/io/CLocalizer.cpp
@@ -28,6 +28,10 @@ namespace io {
 
 CLocalizer::CLocalizer()
 {
+#ifdef _MSC_VER
+    // Avoid multithreading issues caused by setlocale
+    _configthreadlocale(_ENABLE_PER_THREAD_LOCALE);
+#endif
     char* p = std::setlocale(LC_NUMERIC, NULL);
     if (0 != p)
     {

-----------------------------------------------------------------------

Summary of changes:
 src/io/CLocalizer.cpp |    4 ++++
 1 file changed, 4 insertions(+)


hooks/post-receive
-- 
geos


More information about the geos-commits mailing list