public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
From: Carlos O'Donell <carlos@redhat.com>
To: Godmar Back <godmar@gmail.com>
Cc: libc-help <libc-help@sourceware.org>
Subject: Re: why does `LANG` not influence the locale in GNU/Linux
Date: Thu, 27 Jan 2022 00:53:37 -0500	[thread overview]
Message-ID: <66ee4888-f173-cad0-d4cd-dcc076526ecf@redhat.com> (raw)
In-Reply-To: <CAB4+JY+NHW7tYdNvVJWr0-qv5zzuvSTf1yqX0Lj94Bkj0-9uMg@mail.gmail.com>

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


      reply	other threads:[~2022-01-27  5:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-27  0:35 Godmar Back
2022-01-27  5:28 ` Carlos O'Donell
2022-01-27  5:40   ` Godmar Back
2022-01-27  5:53     ` Carlos O'Donell [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=66ee4888-f173-cad0-d4cd-dcc076526ecf@redhat.com \
    --to=carlos@redhat.com \
    --cc=godmar@gmail.com \
    --cc=libc-help@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).