<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Same here on <i>Ubuntu</i>.</p>
<p>The LaTeX code results in <i>TeXstudio</i>:</p>
<p>line 7: Extra }, or forgotten $. }<br>
line 8: Missing $ inserted.<br>
: No file texstudio_ryTxqW.aux.</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 28.07.22 11:07, Philip Taylor
(Hellenic Institute) wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c536d924-40df-2e30-baa8-634faccd497d@Hellenic-Institute.Uk">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<div class="moz-cite-prefix">On 28/07/2022 08:51, David Carlisle
wrote:</div>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:CAEW6iOi8a5EwNyVvq__H4Bz3g+1e_Cd4VosHoh+YmHJqjuOJjw@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="ltr">
<div dir="ltr">you can already access the environment</div>
<div class="gmail_quote">
<div>using kpsewhich</div>
<div><br>
</div>
<div>\documentclass{article}<br>
\usepackage[T1]{fontenc}<br>
\begin{document}<br>
<br>
{\catcode`\_=12<br>
\input{|kpsewhich -expand-var $LC_CTYPE}<br>
}<br>
<br>
\end{document}</div>
<div><br>
</div>
<div>prints en_US.UTF-8 for me.</div>
</div>
</div>
</blockquote>
<p>Ignoring the LaTeX wrapper, David, this returns nothing useful
for me from Windows using CMD :</p>
<p> </p>
<blockquote type="cite">D:\>kpsewhich -expand-var $LC_CTYPE<br>
$LC_CTYPE</blockquote>
whilst replacing "LC_TYPE" with "home" returns something
meaningful :
<p> </p>
<blockquote type="cite">D:\>kpsewhich -expand-var $home<br>
D:/Users/Philip Taylor</blockquote>
-- <br>
<i>** Phil.</i><br>
<br>
</blockquote>
</body>
</html>