From e3565fd61cee16414a682d2be0d44c112a80a30c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 24 Jan 2019 17:02:09 -0500 Subject: Remove _configthreadlocale() calls in ecpg test suite. This essentially reverts commits a772624b1 and 04fbe0e45, which added "_configthreadlocale(_ENABLE_PER_THREAD_LOCALE)" calls to the thread-related ecpg test programs. That was nothing but a hack, because we shouldn't expect that ecpg-using applications have done that for us; and now that we've inserted such calls into ecpglib, the tests should still pass without it. (If they don't, it would be good to know that.) HEAD only; there seems no big need to change this in the back branches. Discussion: https://postgr.es/m/22937.1548307384@sss.pgh.pa.us --- src/interfaces/ecpg/test/thread/alloc.pgc | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/interfaces/ecpg/test/thread/alloc.pgc') diff --git a/src/interfaces/ecpg/test/thread/alloc.pgc b/src/interfaces/ecpg/test/thread/alloc.pgc index b13bcb860b..c44bc91d78 100644 --- a/src/interfaces/ecpg/test/thread/alloc.pgc +++ b/src/interfaces/ecpg/test/thread/alloc.pgc @@ -42,12 +42,6 @@ static void* fn(void* arg) char **r = NULL; EXEC SQL END DECLARE SECTION; -#ifdef WIN32 -#ifdef _MSC_VER /* requires MSVC */ - _configthreadlocale(_ENABLE_PER_THREAD_LOCALE); -#endif -#endif - value = (long)arg; sprintf(name, "Connection: %d", value); -- cgit v1.2.1