[SOLVED] (was: beautifygraph: unsupported encoding, UTF-8 required)

Dr Rainer Woitok rainer.woitok at gmail.com
Mon Jun 7 15:31:34 UTC 2021


Uwe,

On Monday, 2021-06-07 09:45:55 +0200, you wrote:

> ...
> setenv LC_ALL en_US.UTF-8 
> setenv LC_CTYPE en_US.UTF-8
> setenv LANG en_US.UTF-8

Except for "LC_ALL" all other environment variables "LC_..." will always
have the effect as if specified as

   LC_...=${LC_ALL:-${$LC_...:-${LANG:-C}}}       # Bash Shell notation.

that is, if "LC_ALL" is defined and non-empty, it will override the val-
ues passed to any other "LC_..." variables,  otherwise the values of the
"LC_..." variables will be used,  but empty or unset  "LC_..." variables
will default to the value of "LANG", which, if undefined or empty itself
will default to "C".

Thus you should never set "LC_ALL" in your shell initialization file, it
is meant for scripts which TEMPORARILY have the need to change the lang-
uage environment, and if you also removed the definition for "LC_CTYPE",
it would just default to "en_US.UTF-8", and thus nothing would change.

By the way, setting "LANG" to "en_GB.UTF-8" rather than to "en_US.UTF-8"
would have the minor advantage (apart from "correct" spelling of quite a
few words :-)  that paper formats are specified as "DIN A*" because that
is what the Brits use rather than "Legal",  "Letter", and so on.   So if
you do a lot of printing  this might make specifying  print jobs easier.
And should you only  want British paper formats  and insist  in American
spelling,  just leave "LANG" as above and additionally set "LC_PAPER" to
"en_GB.UTF-8".  But I heavily digress ... :-)

Sincerely,
  Rainer



More information about the Mercurial mailing list