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 1vT5A8-00CUzn-0o for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Dec 2025 21:22:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vT5A6-007GWQ-2m for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Dec 2025 21:22:23 +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 1vT5A6-007GWI-1q for pgsql-hackers@lists.postgresql.org; Tue, 09 Dec 2025 21:22:22 +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 1vT5A4-003zvE-19 for pgsql-hackers@lists.postgresql.org; Tue, 09 Dec 2025 21:22:21 +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 5B9LMJXR292845 for ; Tue, 9 Dec 2025 16:22:19 -0500 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: Solaris versus our NLS files MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <292843.1765315339.1@sss.pgh.pa.us> Date: Tue, 09 Dec 2025 16:22:19 -0500 Message-ID: <292844.1765315339@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I idly tried the NLS-testing patch at [1] on a Solaris image (actually OpenIndiana), and was not really astonished to find that it fails. Everything compiles cleanly, but the test shows that no message translation happens, and manual checking confirms that. After some quality time with Google, I learned why: with Solaris's apparently-locally-hacked version of gettext, it's not good enough to have $INSTALLATION/share/locale/ subdirectories named like "es", "fr", etc. They have to be named after the fully-spelled-out locale names like "es_ES.UTF-8". At least Solaris is kind enough to let you do that with symlinks [2], so that after cd $INSTALLATION/share/locale ln -s es es_ES.UTF-8 translation starts working for that particular value of lc_messages. This policy dictates making a rather large number of symlinks in that directory, which we've never done TTBOMK. It's a bit sad that nobody has complained about this --- one must conclude that the non-anglophone population of Solaris PG users is nearly empty. Anybody feel like doing something about this? I'm not super excited about it myself, but if we don't, it's probably a blocker for adding the test proposed at [1]. We do have Solaris BF animals that would start failing. regards, tom lane [1] https://www.postgresql.org/message-id/247596.1765300108%40sss.pgh.pa.us [2] https://docs.oracle.com/cd/E36784_01/html/E39536/gnkbn.html