Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxgt6-0004nG-1K for pgsql-committers@arkaria.postgresql.org; Fri, 08 Jan 2021 01:48:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxgt4-00083t-Sy for pgsql-committers@arkaria.postgresql.org; Fri, 08 Jan 2021 01:48:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxgt3-00082W-E6 for pgsql-committers@lists.postgresql.org; Fri, 08 Jan 2021 01:48:22 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxgt0-0004ho-Fc for pgsql-committers@lists.postgresql.org; Fri, 08 Jan 2021 01:48:21 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 0D6DB5C020E; Thu, 7 Jan 2021 20:48:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 07 Jan 2021 20:48:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=R9caMUZ8xETWao8svm9IHO8K+V+ kPfsycLjGgaXLPP0=; b=RPT4rXWToYBCmrYxXwmxy7xROcN47CXu8bVfS9z7pCN xGBwDstWJtTHTIB3y2ki9PPX0sR/L+jsSom+19ts6VrmFT0TOlbjcG7gBZpnYWlL 3nX2OeKb18/2PNw+f/cajBTn5UeIB+gw1i/rzhc+c1dD+9WnIt1izPHXX9ih+CIf Jt410JY1BcoARFqptnA5XSXGAoNe6lBvixeQCgECYzw3O8xZa5sjTysVidfiKijM DjO4ZX2shTpvl3Lga6/846HBcX9Quh0FQsPviJEmeKfU/a662MUGWeJ90DQNp00b 40DfIZAIWFJmcwdNq5v/DtMNmxi7aBz3yXhOvYbBtAg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=R9caMU Z8xETWao8svm9IHO8K+V+kPfsycLjGgaXLPP0=; b=a1ZCSI1R88Grl3R3FWjWbe wYCPpgSEaKZmE2siVjIl/thcTma9RSjUSfDYb07pF5ua0lDo8IzdUc1p87bRIuIG I9OLoRmx2bxIj6p7OEWcnrZpxqzQYOFK+fZX/b6bJZaD0zQxD78XzC5m835VkDt2 Tkodv0/vAr1VtwW+ccMzzs98BMrcDEVK4SF2tI/NcmJwNQM0Jk6mPLh3NUxguwK/ jsaVgsOSqGlwjxfZe07kTlTD3CiK8BC0EH/fIVytw1kRbis/bAv1bANX/TljQYDA 4Y1ycDHHYdoZDWNGD1AolUATpow4GPStxDsSFO7S9b5isth8Tl6zCjXPYX1dgV3A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdegfedgieejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeeihfffieeutdevvdelteeikeeg vdeiieelvedvkeeufeeivdefiefggfevvdejkeenucffohhmrghinhepohhpvghnsghsug drohhrghenucfkphepudduuddruddtvddrudektddrudekheenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivg hrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id DA1A51080059; Thu, 7 Jan 2021 20:48:13 -0500 (EST) Date: Fri, 8 Jan 2021 10:48:09 +0900 From: Michael Paquier To: Tom Lane Cc: Robert Haas , pgsql-committers Subject: Re: pgsql: createdb: Fix quoting of --encoding, --lc-ctype and --lc-collate Message-ID: References: <20200227051112.GA280980@paquier.xyz> <20200227130127.GE403330@paquier.xyz> <231373.1610058324@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XlQn2YS0sNN9BuFf" Content-Disposition: inline In-Reply-To: <231373.1610058324@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --XlQn2YS0sNN9BuFf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 07, 2021 at 05:25:24PM -0500, Tom Lane wrote: > So on this machine, setlocale() is lax about LC_COLLATE values as > well as (presumably) LC_CTYPE. Question then becomes why we did > not notice for nearly a year. It looks like, of the not-very-many > OpenBSD machines in the buildfarm, the only one running the TAP > tests is curculio, and that's running OpenBSD 5.9 which is quite old. > Comparing their setlocale(3) man pages for different versions, it > looks like the current verbiage appeared in 6.3; older versions > have text similar to other BSDen. So it looks like they actually > ripped out a lot of locale functionality in 6.3. Indeed. 6.3 is the point where they began ignoring LC_COLLATE, and the buildfarm has no coverage for it. Here is the reference in the upstream doc for others: https://man.openbsd.org/OpenBSD-6.3/setlocale.3 https://man.openbsd.org/OpenBSD-6.2/setlocale.3 > It seems like (1) we need to drop the --lc-collate version of this > test too, or else adjust both tests to accept the error we get on > OpenBSD as well as the normal error; (2) somebody really ought to > crank up a modern OpenBSD critter that's running the TAP tests. Using an alternate output looks adapted to me. Thanks for 9ffe227. -- Michael --XlQn2YS0sNN9BuFf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl/3udkACgkQnvQgOdby QH1KaRAAlZWbQSMtnkKP1r0kg3gmP23/QRf8AYE3zTgjeGWU8EqeGhTUTFfD0ur7 +cJ8/oAe3p07VE9nH+pjrN0Ahc1gUk0vzwKmG0RMT+l5s55iyiQuMqL3zyjdYCcQ p08dLvMfV3YjPJSKYdvIuf1GpjkklqWdcr22okvtVmXxzkvGf0lSHprFgNDXm3kx 2B4Q0mKcp2YFrZ4lywRNrxk7OS20x+syaK3HR05//QuKlvK1HJPKITQr6zwnFV9z 37JaCqX0njC6Jx1zRxcNW0CeYYsuURaNHkR7EoB4Yj4s8k0SA7eMrXpPios8k/xu 0e4hhQjrZDxhUrYBWLUet9gydzAaetC9725mZRjVxqtB400dMGaVEZOGwRShmJI2 WphlUbvRvVsi6yNqbWyWJYqO2KuDhRfQLvkZ++IWvpPPmUWRoxS9pTEJ+E4hmufK eAzRY6RIapluZPXH893p8bGEGcJrOrzhzWPx10ItL/+ndjx/LhPmhOXq6pd9tGcI 5Uj8I4Tj/84GWTqtH7gIG5J2jiLd2gEIroQu5DSrnOzx0SNfHLNLDf2l7tfY5aS5 X0G44JOAAFgdM94diF9R9/pO7EQrvISVI7dHgut+eK6P/OH0/fHjhO0Yh3zPVnyV GfqJ36gdFKnXNqXF2YuwwhQIhp2KAzavYXbIl5EoeHnOwjuDZHg= =pdkb -----END PGP SIGNATURE----- --XlQn2YS0sNN9BuFf--