[luatex] luatex with unexpected locale

luigi scarso luigi.scarso at gmail.com
Sun Jun 11 07:52:14 CEST 2017


On Sat, Jun 10, 2017 at 10:21 PM, David Carlisle <d.p.carlisle at gmail.com> wrote:
>  LANG=a_b luatex
>
> produces the error
>
> Unable to read environment locale:exit now.
>
> and any supplied file is ignored
>
> presumably from here in luaint.w
>
>         env_locale = setlocale (LC_ALL, "");
>     if (!env_locale) {
>       fprintf(stderr,"Unable to read environment locale:exit now.\n");
>
>
> this came up on stackexchange with a user with locale including
> LANG=en_DE.utf8
> (German English?)
>
> https://tex.stackexchange.com/questions/374303/luatex-error-unable-to-read-environment-localeexit-now
>
>
>
> I'm not sure if luatex could be made to work if LANG is set to an
> unknown value (eg just act as if it was C)??

no, exit is the better way.

>but if not, could the
> error message be a bit more informative? "Unable to read" doesn't seem
> to suggest "set to wrong value"

I will see, but there can be cases where the locale is not wrong but
it's not loaded into the system. Unable to read covers both the situations.


-- 
luigi


More information about the luatex mailing list