Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crPF1-0000NU-MS for pgsql-committers@arkaria.postgresql.org; Fri, 24 Mar 2017 13:26:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1crPF1-0005AB-8x for pgsql-committers@arkaria.postgresql.org; Fri, 24 Mar 2017 13:26:55 +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 1crPEm-0004HV-DW for pgsql-committers@postgresql.org; Fri, 24 Mar 2017 13:26:40 +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 1crPEj-0003FC-Gf for pgsql-committers@postgresql.org; Fri, 24 Mar 2017 13:26:39 +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 v2ODQYc2015964; Fri, 24 Mar 2017 09:26:35 -0400 From: Tom Lane To: Andrew Dunstan cc: Peter Eisentraut , pgsql-committers@postgresql.org Subject: Re: pgsql: ICU support In-reply-to: <56aed98f-7cf1-018e-23d9-fefd7adf7fd3@2ndQuadrant.com> References: <0762156b-8258-0865-50d5-57b7c47cff71@2ndquadrant.com> <9886c4bf-2cc6-4db2-5512-a74148a752f8@2ndQuadrant.com> <32043.1490320966@sss.pgh.pa.us> <1960.1490327585@sss.pgh.pa.us> <56aed98f-7cf1-018e-23d9-fefd7adf7fd3@2ndQuadrant.com> Comments: In-reply-to Andrew Dunstan message dated "Fri, 24 Mar 2017 03:43:06 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15962.1490361994.1@sss.pgh.pa.us> Date: Fri, 24 Mar 2017 09:26:34 -0400 Message-ID: <15963.1490361994@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Andrew Dunstan writes: > On 03/23/2017 11:53 PM, Tom Lane wrote: >> + ERROR: collation "en-x-icu" for encoding "SQL_ASCII" does not exist >> >> I can reproduce this with vanilla configure options if I'm running >> with --with-icu and LANG=C. In short, this regression test does not >> work in C locale, and you need to find a way to disable it in that >> environment. > Possibly something like this: > REGRESS_OPTS = --dlpath=. $(EXTRA_REGRESS_OPTS) > ifeq ($(with_icu),yes) > +ifndef NO_LOCALE > +ifneq ($(LANG),C) > override EXTRA_TESTS := collate.icu $(EXTRA_TESTS) > endif > +endif > +endif That's better than nothing, certainly, but it doesn't catch all the ways that C locale could be selected (LC_ALL, no valid setting for LANG, etc). I suppose that what we really want to know is what encoding will be used in the regression database. I wonder whether the Makefile could find that out more directly. Although maybe it's time to bite the bullet and teach pg_regress how to select whether or not to run the test --- that would have the advantage of (probably) working on Windows, which no amount of Makefile-hacking will do. BTW, is there a reason that override isn't spelled more like override EXTRA_TESTS += collate.icu ? That seems more readable and idiomatic to me. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers