tlmgr update --all

Norbert Preining norbert at preining.info
Mon Jun 3 05:27:49 CEST 2024


On Sat, 01 Jun 2024, Karl Berry wrote:
>     perl: warning: Falling back to the standard locale ("C").

Ahh that one ... I remember that.

luatex is too ...... to work with broken locales and simply
does

$ luatex -ini   -jobname=luatex -progname=luatex luatex.ini
Unable to read locale data: please check the 'locale' settings of your environment for consistency. Exiting now.

In Debian I did
	LANG=C LC_ALL=C fmtutil-sys ...

> Norbert, do you have any ideas?

We either should do this directly in fmtutil, or in tlmgr.
Do you have any preferences, Karl?

My tendency is to do it fmtutil just before the actual engine call,
so that other error messages are still in the current language.
Something like:
diff --git a/Master/texmf-dist/scripts/texlive/fmtutil.pl b/Master/texmf-dist/scripts/texlive/fmtutil.pl
index 63b0d6685ba..89c55b6b5d4 100755
--- a/Master/texmf-dist/scripts/texlive/fmtutil.pl
+++ b/Master/texmf-dist/scripts/texlive/fmtutil.pl
@@ -450,6 +450,12 @@ sub callback_build_formats {
   # for MFBASES.
   $ENV{'TEXFORMATS'} ||= "";
   $ENV{'TEXFORMATS'} = "$tmpdir$sep$ENV{TEXFORMATS}";
+  #
+  # reset LANG and LC_ALL to C just in case
+  # luatex fails to build formats if LANG/LC_ALL has a setting that is
+  # incorrect,
+  $ENV{'LANG'} = "C"
+  $ENV{'LC_ALL'} = "C"

   # switch to temporary directory for format generation; on the other hand,
   # for -n, the tmpdir won't exist, but we don't want to find a spurious


WDYT?

Best regards

Norbert

--
PREINING Norbert                              https://www.preining.info
arXiv / Cornell University   +   IFMGA Guide   +   TU Wien  +  TeX Live
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


More information about the tex-live mailing list.