diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2013-10-20 18:20:24 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2013-10-20 18:20:24 +0000 |
| commit | bbf81f3091e6bd9e5d7ba2bb88a752dc61af6ddf (patch) | |
| tree | 43f7d95278c38581e92f63ef892eddd8a1d0d72d /src | |
| parent | 6d96fe83dfd39283085f3783ad3bd6d30eaf2cc7 (diff) | |
| download | PROJ-bbf81f3091e6bd9e5d7ba2bb88a752dc61af6ddf.tar.gz PROJ-bbf81f3091e6bd9e5d7ba2bb88a752dc61af6ddf.zip | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
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) { |
