<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 21 Feb 2024 at 11:26, Nicola Talbot via tex-live <<a href="mailto:tex-live@tug.org">tex-live@tug.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
My main reason for writing texosquery was to obtain the system locale <br>
information. Lua just returned "C" when I tried it on Linux, which <br>
wasn't any use as I needed the locale tag (LC_ALL etc is only useful for <br>
*nix). </blockquote><div><br></div><div><br></div><div><br></div><div>Yes texlua sets the locale to C:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br></blockquote><blockquote>In stock Lua, many things depend on the current locale. In LuaTEX, we can’t do that, because it<br>makes documents unportable. While LuaTEX is running if forces the following locale settings:<br><br>LC_CTYPE=C<br>LC_COLLATE=C<br>LC_NUMERIC=C<br></blockquote><div><br></div>But I think the main use cases here are file operations (specifically directory listings) so this is probably not an issue. As Joseph says, the idea isn't really "re-implement texosquery in lua", it's "get a directory listing in a way most likely to work in an installed texlive", and having texlua available makes that at least feasible.</div><div class="gmail_quote"><br></div><div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div></div>