[luatex] luatex with unexpected locale

David Carlisle d.p.carlisle at gmail.com
Sat Jun 10 22:21:33 CEST 2017

 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
(German English?)


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)?? but if not, could the
error message be a bit more informative? "Unable to read" doesn't seem
to suggest "set to wrong value"


More information about the luatex mailing list