I like to use \usepackage{mlmodern} but I noticed it changes ' in listings. Is there to tell it not to do this? I use lualatex.
Here is MWE
\documentclass[12pt]{article}
\usepackage[T1]{fontenc}
\usepackage{mlmodern}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[language=Mathematica,basicstyle=\ttfamily\small]
DSolve[y'[x]==(x+y[x])^(1/2),y[x],x]
\end{lstlisting}
\end{document}
The output PDF shows this
Compiling without mlmodern gives
The problem with the first version is that now one can't copy and paste the code as is, since it is no longer valid. It should remain ' and not backquote
TL 2022 on Linux.
Update:
Same issue happens with pdflatex. But with pdflatex with and without mlmodern it changes to backquote.




