Hi Luigi, here on Debian we got a bug report that luatex cannot build formats under a broken locale. I can reproduce this on standard TeX Live, too: $ LC_TIME=en_DE.UTF-8 luatex -ini -jobname=luatex -progname=luatex luatex.ini Unable to read environment locale: exit now. $ (same on dev version) It comes from the code of luainit env_locale = setlocale (LC_ALL, ""); if (!env_locale && !lua_only) { fprintf(stderr,"Unable to read environment locale: exit now.\n"); exit(1); } I agree that the locale is completely broken, and the system does not support this locale. BUT it would be nice if luatex would not crash on such a setup, at least during format build? WDYT? Norbert -- PREINING Norbert http://www.preining.info Accelia Inc. + JAIST + TeX Live + Debian Developer GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
On Tue, Feb 19, 2019 at 5:50 AM Norbert Preining
Hi Luigi,
here on Debian we got a bug report that luatex cannot build formats under a broken locale. I can reproduce this on standard TeX Live, too: $ LC_TIME=en_DE.UTF-8 luatex -ini -jobname=luatex -progname=luatex luatex.ini Unable to read environment locale: exit now. $ (same on dev version)
It comes from the code of luainit env_locale = setlocale (LC_ALL, ""); if (!env_locale && !lua_only) { fprintf(stderr,"Unable to read environment locale: exit now.\n"); exit(1); }
I agree that the locale is completely broken, and the system does not support this locale.
BUT it would be nice if luatex would not crash on such a setup, at least during format build?
WDYT?
It's not a bug, luatex wants a sane locale --- building a format or not, it doesn't matter. We can change it, but for sure not for texlive 2019. -- luigi
Hi Luigi, On Tue, 19 Feb 2019, luigi scarso wrote:
It's not a bug, luatex wants a sane locale --- building a format or not, it doesn't matter.
I agree completely, and I agree that for a user run where the locale might specify a different encoding for their files or whatever. But during format dump phase this should not be necessary I *guess*. Anyway, I agree with ..
We can change it, but for sure not for texlive 2019.
that. Best Norbert -- PREINING Norbert http://www.preining.info Accelia Inc. + JAIST + TeX Live + Debian Developer GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
participants (2)
-
luigi scarso
-
Norbert Preining