From bbf81f3091e6bd9e5d7ba2bb88a752dc61af6ddf Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Sun, 20 Oct 2013 18:20:24 +0000 Subject: add inline warning about locale issue on windows (#226) git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2393 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/pj_init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/pj_init.c b/src/pj_init.c index fef2b5ff..fcd57bb8 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -390,6 +390,11 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) { ctx->last_errno = 0; start = NULL; + /* + ** MS Visual Studio 2012+ may have problems in multithreaded cases + ** as discussed in this ticket: + ** http://trac.osgeo.org/proj/ticket/226 + */ old_locale = setlocale(LC_NUMERIC, NULL); if (old_locale != NULL) { if (strcmp(old_locale,"C") != 0) { -- cgit v1.2.3