Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dv9CW-0006Fw-P2 for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Sep 2017 21:40:04 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dv9CW-0004bc-Bb for pgsql-hackers@arkaria.postgresql.org; Thu, 21 Sep 2017 21:40:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dv9Ay-0000mD-3t for pgsql-hackers@postgresql.org; Thu, 21 Sep 2017 21:38:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dv9Ar-0007wZ-BV for pgsql-hackers@postgresql.org; Thu, 21 Sep 2017 21:38:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v8LLcDf0002654; Thu, 21 Sep 2017 17:38:13 -0400 From: Tom Lane To: Noah Misch cc: Peter Eisentraut , Peter Geoghegan , PostgreSQL Hackers Subject: Re: !USE_WIDE_UPPER_LOWER compile errors in v10+ In-reply-to: <7963.1506001811@sss.pgh.pa.us> References: <20170921052928.GA188913@rfd.leadboat.com> <7963.1506001811@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Thu, 21 Sep 2017 09:50:11 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2652.1506029893.1@sss.pgh.pa.us> Date: Thu, 21 Sep 2017 17:38:13 -0400 Message-ID: <2653.1506029893@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Noah Misch writes: >> Perhaps it is time to require HAVE_WCSTOMBS and HAVE_TOWLOWER, removing >> USE_WIDE_UPPER_LOWER? Every buildfarm fossil has both. > +1 ... if nothing else, there's the problem that untested code is likely > to be broken. You just proved it *is* broken, of course, but my point > is that even if we repaired the immediate damage we could have little > confidence in it staying fixed. Further notes about that: * The Single Unix Spec v2 (a/k/a POSIX 1997), which has been our minimum portability spec for quite awhile, requires wcstombs() and towlower(), and further requires the latter to be declared in . * Surveying the buildfarm, I agree with your conclusion that every active member has wcstombs() and towlower(). gaur/pademelon is the lone member that lacks ; it declares towlower() in instead. It's not so surprising that that system adheres to a pre-1997 idea of where to put that, because its /usr/include files mostly date from 1996 ... Meanwhile, I see that Peter has posted a fix for the immediate problem. I propose that Peter should apply his fix in HEAD and v10, and then I'll rip out the !USE_WIDE_UPPER_LOWER code paths in HEAD only. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers