Bug#922500: luatex and broken locales

2021-02-13 Thread luigi scarso
On Sat, Feb 13, 2021 at 12:28 PM Hilmar Preuße  wrote:

> > 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.
> >
> Did you change anything for this issue? I'm not able to reproduce the
> issue any more, but I do not see any change in luainit.c, which expects
> to solve.
>

No change, and I have
$> LC_TIME=en_DE.UTF-8 luatex -ini   -jobname=luatex -progname=luatex
luatex.ini
Unable to read environment locale: exit now.
( This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev) )

-- 
luigi


Bug#922500: luatex and broken locales

2021-02-13 Thread Hilmar Preuße

Control: reassign -1 texlive-binaries

Am 19.02.2019 um 10:22 teilte luigi scarso mit:
On Tue, Feb 19, 2019 at 5:50 AM Norbert Preining > wrote:


Hi all,

Old issue, I know: https://bugs.debian.org/922500


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.

Did you change anything for this issue? I'm not able to reproduce the 
issue any more, but I do not see any change in luainit.c, which expects 
to solve.


Hilmar
--
sigfault




OpenPGP_signature
Description: OpenPGP digital signature


Bug#922500: luatex and broken locales

2019-02-19 Thread Norbert Preining
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



Bug#922500: luatex and broken locales

2019-02-19 Thread luigi scarso
On Tue, Feb 19, 2019 at 5:50 AM Norbert Preining  wrote:

> 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


Bug#922500: luatex and broken locales

2019-02-18 Thread 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?

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