<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="moz-cite-prefix">On 22/04/2024 21:59, Aleks Kleyn wrote:<br>
</div>
<blockquote type="cite" cite="mid:012701da94f7$ee97a700$cbc6f500$@org">
<p class="MsoNormal"><a name="_MailEndCompose" moz-do-not-send="true"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I discovered one more interesting thing. When I put
</span>\usepackage[cp1251]{inputenc}</a><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> in the beginning of document (like it was originally), I get wrong error reporting. This macro works properly when it come last in the set
of packages. This means that some packages change input encoding.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
</blockquote>
Packages should not change the declared encoding of the main document, but quite possibly some do, that would be an issue to raise with the package maintainer. There is nothing that pdftex can do about that.<br>
<p>This list is really about the pdftex engine, which is not directly involved, all the features you are discussing are purely about the latex macro layer.</p>
<p>but \usepackage[cp1251]{inputenc} can only do anything useful if the files are actually in the Windows Code page 1251 encoding.</p>
<p><br>
</p>
<p>You have not said what encoding your files are in, nor given any example, nor said what error you got.</p>
<p>I am guessing that your issue is related to the change of default encoding for latex in 2018, but that should not have affected any document that was correctly declaring the encoding it was using, so it is surprising to see it causing problems now.</p>
<p>You also have not said what change you made, certainly if you updated from texlive 2023 to 2024 my guess that it was related to the default encoding can not be right.</p>
<p><br>
</p>
<p>If you showed a small document and said what system you used previously where it worked, and said what it does wrong in texlive 2024, someone could help, otherwise I really can not guess any more.</p>
<p>I would still say you should consider re-encoding your files to UTF-8 (back them up first but then you should be able to convert them all with various commandline tools, you would not have to edit each file "by hand")<br>
</p>
<p>David</p>
<p><br>
</p>
<style type="text/css">.style1 {font-family: "Times New Roman";}</style><mc type="body"><br>
<br>
<p style="font-family: Verdana; font-size:10pt; color:#666666;"><b>Disclaimer</b></p>
<p style="font-family: Verdana; font-size:8pt; color:#666666;">The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: 30 St. Giles, Oxford, OX1 3LE, United Kingdom. Please see our
<a href="https://www.nag.com/content/privacy-notice">Privacy Notice </a>for information on how we process personal data and for details of how to stop or limit communications from us.<br>
<br>
This e-mail has been scanned for all viruses and malware by Microsoft Exchange Online (EOP)</p>
</body>
</html>