Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vTNfJ-000DZL-21 for pgsql-translators@arkaria.postgresql.org; Wed, 10 Dec 2025 17:07:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vTNeI-0002z1-0v for pgsql-translators@arkaria.postgresql.org; Wed, 10 Dec 2025 17:06:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vTNeH-0002yt-3A for pgsql-translators@lists.postgresql.org; Wed, 10 Dec 2025 17:06:46 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vTNeG-0000MB-2i for pgsql-translators@lists.postgresql.org; Wed, 10 Dec 2025 17:06:45 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5BAH6fDZ644239; Wed, 10 Dec 2025 12:06:41 -0500 From: Tom Lane To: =?utf-8?Q?=C3=81lvaro?= Herrera cc: pgsql-translators@lists.postgresql.org Subject: Re: requiring all .po files be UTF8-encoded In-reply-to: <202512101549.tx3ejz5cr77v@alvherre.pgsql> References: <202512101549.tx3ejz5cr77v@alvherre.pgsql> Comments: In-reply-to =?utf-8?Q?=C3=81lvaro?= Herrera message dated "Wed, 10 Dec 2025 17:47:49 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <644237.1765386401.1@sss.pgh.pa.us> Date: Wed, 10 Dec 2025 12:06:41 -0500 Message-ID: <644238.1765386401@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =?utf-8?Q?=C3=81lvaro?= Herrera writes: > There's an ongoing project to add a regression test to ensure all > platforms are correctly handling translations. [1] > [1] https://postgr.es/m/b292844.1765315339@sss.pgh.pa.us For the list archives' sake: that link seems wrong. A more relevant discussion for translation purposes is https://www.postgresql.org/message-id/flat/292844.1765315339%40sss.pgh.pa.us in which we discovered that Solaris' gettext implementation doesn't handle transcoding of .mo files, and that we have to know at build time which encoding they're in so as to create appropriate symlinks. Rather than write code to extract that information, I proposed that we just institute a policy that all our .po files should be in UTF-8. We're apparently nearly there already so far as actively-maintained .po files go. regards, tom lane