nmh-workers
[Top][All Lists]
Advanced

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

Re: [nmh-workers] Formatting HTML to Text: netrik.


From: Ronald F. Guilmette
Subject: Re: [nmh-workers] Formatting HTML to Text: netrik.
Date: Sun, 07 Jul 2019 19:39:47 -0700

In message <address@hidden>, you wrote:

>    Date:        Sun, 07 Jul 2019 12:56:13 -0700
>    From:        "Ronald F. Guilmette" <address@hidden>
>    Message-ID:  <address@hidden>
>
>  | But to answer Ralph's inquiry...
>  |
>  |
>  | LANG=en_US.UTF-8
>  | LC_CTYPE="en_US.UTF-8"
>  | LC_COLLATE="en_US.UTF-8"
>  | LC_TIME="en_US.UTF-8"
>  | LC_NUMERIC="en_US.UTF-8"
>  | LC_MONETARY="en_US.UTF-8"
>  | LC_MESSAGES="en_US.UTF-8"
>  | LC_ALL=
>
>That looks wrong ... that last line undoes the effect of all of the
>others, when LC_ALL is set, it overridses everything else.  (Though
>XTERM_LOCALE isn't one of this set and is entirely unrelated).
>Nb: it is not the order that matters, it is having LC_ALL set at all.
>
>In general, LC_ALL should almost never be set except in a usage like
>
>       LC_ALL=C grep ...
>
>in a script, where you want (need) to return temporarily to the default
>locale in order to run one particular command that way (so any other
>locale settings that may be in the environment are temporarily ignored).
>(This can be needed to make things like '[a-z]' work properly in the pattern.)
>
>You *never* want it set in the environment.
>
>Setting LANG along with all the others is also kind of useless, but that
>one is harmless - that's the fallback default for the LC_xxx's that aren't
>set.
>
>The double quotes that are used are also not needed - but those affect
>nothing and are largely an issue of style.


You are telling all of this to the Wrong Guy my friend.

I have not myself taken any affirmative steps to set *any* of these
envars to their indicated values, with the exception of LANG, which
I confess I have and did explicitly set within my personal .login file
thusly:

   setenv LANG en_US.UTF-8

(Note that I use C-shell, not Borne shell, and that is why I have a
.login file.)

For the rest, if you think that they are all improper, I can only
respectfully suggest that you kindly address these issues to the
maintainers of FreeBSD, since I seem to be simply inheriting their
common and systemwide defaults for all of these things.

If you really feel that these are all improper setting, then please,
you will have a much wider and more beneficial effect if you do
notify the FreeBSD people. I do not feel that *I* can even do that
effectively, since *I* do not even have any real clear idea of
what any of these envars do, or are supposed to do, let alone what
might arguably be wrong with the default FreeBSD settings of any
of them.

In short, I am entirely out of my depth.


Regards,
rfg



reply via email to

[Prev in Thread] Current Thread [Next in Thread]