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 1q8p5v-0003H1-Aj for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jun 2023 21:28:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q8p5u-0001Ib-6V for pgsql-hackers@arkaria.postgresql.org; Mon, 12 Jun 2023 21:28:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q8p5t-0001IS-HR for pgsql-hackers@lists.postgresql.org; Mon, 12 Jun 2023 21:28:57 +0000 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1q8p5q-001r4G-Py for pgsql-hackers@postgresql.org; Mon, 12 Jun 2023 21:28:56 +0000 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-56ce53c0040so30331617b3.2 for ; Mon, 12 Jun 2023 14:28:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; t=1686605333; x=1689197333; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kulq4MnPU2JxMOLKODT8RGF5eAy0LuxNFRu1RdWCk0o=; b=PRgZidxq0MG9dEh9DFmUJLDxaqK6hLfrxNyOfkOrGx4hC1LZTu+YT4cVKTGRLOg7zc lyOXmA0vHNmqrEqOBh/IXDFT7cBLbJDPtU3lYtCELUJd04F8XFR3DPKv58sGhHaVIJOd RD1X1agyvf2ZADGWQQk3AxYfmQ27QMQXhTW+aeeFOB/fDSgrvYYuJ2nOsOSE1XjQJ8u9 RjW6lnaGCJF70AiP6Dd0Bni6UHNpdYkwWEedNpi+RxE6DpOtHS3Gixfn7FLfkllysHbr bPTSHaiYWbzUVJm62tliiLmXqmoRR4Ade06uvmwYWUqjvWLE9KzsPd6NAQS9KMY6YcKg o1NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686605333; x=1689197333; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kulq4MnPU2JxMOLKODT8RGF5eAy0LuxNFRu1RdWCk0o=; b=KoyauiHkZK3cs69IcEPLIkqoLqhzkQx2D6OIr0N76UvqzjnvHPPrEBxExNOMOwlOX5 dnqZg9ZobQf7FcM7cwO5V/0lgndTAQIXOBX4Z6XcOgfN3EdgX7C5PW2utcjD5OflD0vV kkhsMDDgIps8FQ1Vr7HB/w/suXCBo1U6TQj5iJEvv4fikcu0NLc5+ab0CotBUs5knhIz p73KK43Z84HrT0Bp6QYDPXbH/9kF+Yk4de5fdeuGr4xmJiZewVo6j+DTbXCiPXRBT1Es FwFy2E6DeKu0kxNTnxjAhGKn4Gasl4XBmELqRHGfDND3nb/zhazC3OLaeahInCiJ4bmj uV1A== X-Gm-Message-State: AC+VfDxO9nSYP8SBdiT79kSWZLMtxh+8XVGtxt/fYPClShyFjaErDBon EuffZQ3I3789/7i/F2yOF2X0eA== X-Google-Smtp-Source: ACHHUZ6yR59sG3lh53GY9PH5QsZQ7tccfvsCsQxGauH3uwaf6nlDLnB1z5lWqyEBuf9hVxxySV/XZQ== X-Received: by 2002:a0d:cc01:0:b0:56d:3f2:35a3 with SMTP id o1-20020a0dcc01000000b0056d03f235a3mr7846084ywd.44.1686605333471; Mon, 12 Jun 2023 14:28:53 -0700 (PDT) Received: from [192.168.4.41] (162-239-31-113.lightspeed.dybhfl.sbcglobal.net. [162.239.31.113]) by smtp.gmail.com with ESMTPSA id n126-20020a817284000000b00561949f713fsm2760403ywc.39.2023.06.12.14.28.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Jun 2023 14:28:53 -0700 (PDT) Message-ID: <18c6979a-126a-e530-7cc4-3b6984b1997b@joeconway.com> Date: Mon, 12 Jun 2023 17:28:52 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: BUG #17946: LC_MONETARY & DO LANGUAGE plperl - BUG Content-Language: en-US From: Joe Conway To: Heikki Linnakangas Cc: Tristan Partin , gdo@leader.it, Tom Lane , PostgreSQL-development References: <17946-3e84cb577e9551c3@postgresql.org> <1564676.1685043220@sss.pgh.pa.us> <555bb26e-c27c-ab65-028f-3fd5b82df9de@iki.fi> <5676b739-0854-f924-4b97-466e3504c692@joeconway.com> <665279.1686422574@sss.pgh.pa.us> <574a1afa-5c6e-829c-0fed-a9ff44719f9f@joeconway.com> <49dfcad8-90fa-8577-008f-d142e61af46b@iki.fi> <41a4898e-1cdb-960d-f17e-d71886407e04@joeconway.com> In-Reply-To: <41a4898e-1cdb-960d-f17e-d71886407e04@joeconway.com> 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 6/12/23 10:44, Joe Conway wrote: > 1/ how do we fix the misbehavior reported due to libperl in existing > stable branches > I was mostly trying to concentrate on #1, but 2 & 3 are worthy of > discussion. Hmm, browsing through the perl source I came across a reference to this (from https://perldoc.perl.org/perllocale): --------------- PERL_SKIP_LOCALE_INIT This environment variable, available starting in Perl v5.20, if set (to any value), tells Perl to not use the rest of the environment variables to initialize with. Instead, Perl uses whatever the current locale settings are. This is particularly useful in embedded environments, see "Using embedded Perl with POSIX locales" in perlembed. --------------- Seems we ought to be using that. -- Joe Conway PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com