From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id BBDC93858C74 for ; Thu, 27 Jan 2022 05:53:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org BBDC93858C74 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-551-O4ChtizQO0urkddiVok-Lw-1; Thu, 27 Jan 2022 00:53:39 -0500 X-MC-Unique: O4ChtizQO0urkddiVok-Lw-1 Received: by mail-io1-f71.google.com with SMTP id m185-20020a6bbcc2000000b00605898d6b61so1395463iof.17 for ; Wed, 26 Jan 2022 21:53:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=RMEQbz9hpoBP4U2rE2DcPHgdE3Hrz4erQCi2m0HD1Is=; b=bpps5j/fIc6wjQ7aNHqaldYcf3Vn8hAKk+QaCVahgNm8BYQojOKfhHGMNtZG03vvEs XS4bs8WLQaGAt1uvN5Qzry73796/ombpAs8OUasYJqHngninm8Al/c4Zt2rBSsA5DXt3 pvN9ZME3pNuDHcOip11VsmTQ0YBU9PVaSzn0LXkneUwmposUqHLfji/aZhmFxDThs4vU D494Wvr26okEhp9IP4IhD0uB76eJ2vXDeNSjOfo6fi9S4QEh55KHuu80cqMEtA0Rv8tn 7Ma5zVD+aAmHDRb8c+j84mYl9zqQg+eohucjMhh45b3Y4xtiG3lwzhj9XIlBnTn/xBOr HCDQ== X-Gm-Message-State: AOAM530dv070Vb+RzKdd3ZJwC1MHDPcQYbto5+5clfquqd3kRVFpFbr9 RDF9FUNnqjLEOwhLznpTeZxlGaOFV527j4Oyhd7J8Dqx1crWb/Uy6oSvArU/RYgH2PiTRagXM52 lOYCw7JIHTK+bSPYo/pY= X-Received: by 2002:a6b:d611:: with SMTP id w17mr1245567ioa.66.1643262818707; Wed, 26 Jan 2022 21:53:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw1GveXucZNU3U2Ihsn8vUiAfGg+rp+tpx/kQYMdeBnGOnGlxa7WLW3dB6l2u85NBQyGVnTcg== X-Received: by 2002:a6b:d611:: with SMTP id w17mr1245560ioa.66.1643262818470; Wed, 26 Jan 2022 21:53:38 -0800 (PST) Received: from [192.168.0.241] (135-23-175-80.cpe.pppoe.ca. [135.23.175.80]) by smtp.gmail.com with ESMTPSA id r189sm7549948ior.2.2022.01.26.21.53.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jan 2022 21:53:38 -0800 (PST) Message-ID: <66ee4888-f173-cad0-d4cd-dcc076526ecf@redhat.com> Date: Thu, 27 Jan 2022 00:53:37 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.0 Subject: Re: why does `LANG` not influence the locale in GNU/Linux To: Godmar Back Cc: libc-help References: <033b9a58-46c7-ceff-212f-203bce879172@redhat.com> From: Carlos O'Donell Organization: Red Hat In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.1 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-help@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-help mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jan 2022 05:53:44 -0000 On 1/27/22 00:40, Godmar Back wrote: > It's slightly ironic if you read, for instance PEP-538 [*] that claims > that Python has a need "to use the configured locale encoding by > default for consistency with other locale-aware components in the same > process or subprocesses" when the default behavior in a Unix > environment is to not be locale-aware and revert back to the C locale. Nick Coghlan is the author of PEP-538, and not coincidentally, opened bug 17318 which we just resolved for glibc 2.35 with the addition of a C.UTF-8 that harmonizes the downstream distribution implementations (and minimized it). The creation of C.UTF-8 was partly driven by GNOME and Python needs to have an "always on" UTF-8 encoded locale that could be used as a fallback, rather than the ASCII C/POSIX locale [1][2]. I feel like this is less about locale awareness and more about the encoding of information using UTF-8 by default. > [*] https://www.python.org/dev/peps/pep-0538/ -- Cheers, Carlos. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1313818 [2] https://sourceware.org/bugzilla/show_bug.cgi?id=17318