[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: set gnome locales to C.UTF-8



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.


Reply to: