Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #219722

Re: set gnome locales to C.UTF-8

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: set gnome locales to C.UTF-8
Date 2020-03-02 19:20 +0100
Message-ID <zFXPz-5Bh-9@gated-at.bofh.it> (permalink)
References (5 earlier) <zEVmO-7n3-7@gated-at.bofh.it> <zEVGa-7tM-9@gated-at.bofh.it> <zEW9c-7Tu-3@gated-at.bofh.it> <zF037-1J0-1@gated-at.bofh.it> <zFTCh-2OA-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon 02 Mar 2020 at 08:40:34 (-0500), Greg Wooledge wrote:
> On Fri, Feb 28, 2020 at 08:26:35PM -0600, David Wright wrote:
> > 
> > Now the first question was "Please choose which locales to generate."
> > As it happens, I don't need to *generate* any, because I selected
> > en_US.UTF-8 at installation time.
> 
> *sigh*

No need; all I'm doing is trying to replicate someone else's post.
For a start, I didn't see how they ran dpkg-reconfigure as a user,
but I wondered why they didn't see item 497, which might have had
something to do with running in just locale C. The only way I found
of not having 497 in the list is to have no locale set, but then
I see a slew of perl warnings and error messages not reported in
their post:

    # DEBIAN_FRONTEND=text dpkg-reconfigure locales
    perl: warning: Setting locale failed.
    perl: warning: Please check that your locale settings:
            LANGUAGE = (unset),
            LC_ALL = (unset),
            LANG = "en_US.UTF-8"
        are supported and installed on your system.
    perl: warning: Falling back to the standard locale ("C").
    locale: Cannot set LC_CTYPE to default locale: No such file or directory
    locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    locale: Cannot set LC_ALL to default locale: No such file or directory
    /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory
    /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory
    /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
    Configuring locales
    -------------------
    …

> When you run dpkg-reconfigure locales, you are telling it which locales
> you want to HAVE ON YOUR SYSTEM.  The whole set.  All of them.

I think the scope for misinterpretation comes from the language used.
(Ironic here…) "Please choose which locales to generate" focuses, for
some reason, on the process of reaching a state, rather than the state
that's to be reached. This is reinforced by two things,

  1. giving "497. none of the above"¹ as an option, and

  2. adding:

       Generating locales (this might take a while)...

     as if to say: only generate any new ones you want because
     this process is a little laborious (as it might have been
     on a 386).

Why not use language more like the d-i, along the lines of:

    "Please select all the locales that are to be made
     available in future on this system. At least one
     must be selected."

and then enforce the last sentence rather than just spitting out
error messages.¹

> If you previously generated en_US.UTF-8, and you'd like to KEEP IT, then
> you should select it (make sure it stays selected) when you run
> dpkg-reconfigure locales again.
> 
> If the ONLY locale you want is en_US.UTF-8, then make sure that locale
> (and no other locale) is selected when you run dpkg-reconfigure locales.
> 
> If you UNSELECT a locale that was previously selected, it will probably
> delete that locale.  Maybe probably.  'Cause who the hell does that?
> I've never tested it.  Why would I?  It's a dumb thing to do.

It wouldn't be "dumb" for someone who moves to another country.

No, I think my wording would eliminate any need for stating a couple
of your paragraphs above.

¹ What *is* item 497 for?

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

set gnome locales to C.UTF-8 Ted Baker <debianbaker@gmail.com> - 2020-02-28 02:10 +0100
  Re: set gnome locales to C.UTF-8 john doe <johndoe65534@mail.com> - 2020-02-28 07:10 +0100
    Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 14:20 +0100
      Re: set gnome locales to C.UTF-8 Ted Baker <debianbaker@gmail.com> - 2020-02-28 15:30 +0100
        Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 15:40 +0100
          Re: set gnome locales to C.UTF-8 Stefan Monnier <monnier@iro.umontreal.ca> - 2020-02-28 16:30 +0100
          Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 17:10 +0100
            Re: set gnome locales to C.UTF-8 rhkramer@gmail.com - 2020-02-28 18:40 +0100
              Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 19:00 +0100
                Re: set gnome locales to C.UTF-8 rhkramer@gmail.com - 2020-02-28 20:50 +0100
          Re: set gnome locales to C.UTF-8 rhkramer@gmail.com - 2020-02-28 17:10 +0100
          Re: set gnome locales to C.UTF-8 Ted Baker <debianbaker@gmail.com> - 2020-02-28 17:30 +0100
            Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 17:40 +0100
            Re: set gnome locales to C.UTF-8 David Wright <deblis@lionunicorn.co.uk> - 2020-02-28 21:00 +0100
              Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 21:00 +0100
              Re: set gnome locales to C.UTF-8 Shanbin Zhao <shanbin@gmail.com> - 2020-02-28 21:30 +0100
  Re: set gnome locales to C.UTF-8 john doe <johndoe65534@mail.com> - 2020-02-28 07:10 +0100
    Re: set gnome locales to C.UTF-8 Ted Baker <debianbaker@gmail.com> - 2020-02-28 15:40 +0100
      Re: set gnome locales to C.UTF-8 john doe <johndoe65534@mail.com> - 2020-02-28 16:00 +0100
        Re: set gnome locales to C.UTF-8 Ted Baker <debianbaker@gmail.com> - 2020-02-28 22:20 +0100
          Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-02-28 22:30 +0100
            Re: set gnome locales to C.UTF-8 Ted Baker <debianbaker@gmail.com> - 2020-02-28 22:50 +0100
              Re: set gnome locales to C.UTF-8 Jonas Smedegaard <jonas@jones.dk> - 2020-02-28 23:20 +0100
                Re: set gnome locales to C.UTF-8 David Wright <deblis@lionunicorn.co.uk> - 2020-02-29 03:30 +0100
                Re: set gnome locales to C.UTF-8 Greg Wooledge <wooledg@eeg.ccf.org> - 2020-03-02 14:50 +0100
                Re: set gnome locales to C.UTF-8 David Wright <deblis@lionunicorn.co.uk> - 2020-03-02 19:20 +0100
                Re: set gnome locales to C.UTF-8 Andrei POPESCU <andreimpopescu@gmail.com> - 2020-03-03 09:20 +0100

csiph-web