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 1paZX0-0007ZJ-UM for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2023 09:59:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1paZWz-0007CC-HL for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Mar 2023 09:59:21 +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 1paZWz-0007C3-72 for pgsql-hackers@lists.postgresql.org; Fri, 10 Mar 2023 09:59:21 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1paZWv-0006L8-UI for pgsql-hackers@postgresql.org; Fri, 10 Mar 2023 09:59:20 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailnew.nyi.internal (Postfix) with ESMTP id 1CEC6582134; Fri, 10 Mar 2023 04:59:14 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 10 Mar 2023 04:59:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1678442354; x= 1678449554; bh=7hc/3MMZW+djsDURkiLaDvV8n43369o5lMTOONIxI0g=; b=Y dnoT/3ftomdYQNcDsBPn2d46sAnesL6Jxx6WK9UyHdQlKNqG0zH3NE9kM7PqERgF djYUlmmqUZIYdiM/8H10svFdt6xOsey1DA1YmB07LUwPqXsw6j3KJ4pdqjuoYSAC ew78qrQ169zCunKTVgjDFV2f/bWzzoBpMh/824gzUF+qRPMqOZ5vul9ba4jczVJn Zn+UsGgE4rMYKHzRfru4xuhPo89f/LwMTSIWPHarS5+oWMJpxSE64yCIb6R82AZs jjw08m2BXN+/jydqcSRUiQzBIq/VhF10+jFMVTwxAbXribfTD4x2sww3vvMio04+ kUIweMKbt3pLhCFIhqFng== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddukedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeefjeegheetuefhveevudelueeftdejteeiffetvdduhfdtieefgfeutedt veeggfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 Mar 2023 04:59:13 -0500 (EST) Message-ID: Date: Fri, 10 Mar 2023 10:59:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: pgsql: Use ICU by default at initdb time. Content-Language: en-US To: Jeff Davis , pgsql-hackers References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10.03.23 03:26, Jeff Davis wrote: > That's because ICU always uses UTF-8 by default. ICU works just fine > with many other encodings; is there a reason it doesn't take it from > the environment just like for provider=libc? I think originally the locale forced the encoding. With ICU, we have a choice. We could either stick to the encoding suggested by the OS, or pick our own. Arguably, if we are going to nudge toward ICU, maybe we should nudge toward UTF-8 as well.