I am using minted to display my source code and the Inconsolata package to set the output font. Unfortunately, this produces the following ugly result (note the direction of the quote marks:

Figuring this was a bad attempt on LaTeX's part to use smart quotes, I tried using the upquote package. This produced the following:

Using this MWE:
\documentclass{article}
\usepackage{minted}
\usepackage{inconsolata}
\usepackage{upquote}
\begin{document}
\begin{minted}{matlab}
disp('This string should have straight quotes!');
\end{minted}
\end{document}
Removing the Inconsolata package produces a typographically-acceptable result, but, alas, not in the Inconsolata font:

I'm not sure what's going on.
Why can't I have the font I want AND the appropriate quotes? Any thoughts?



:(– egreg Dec 07 '12 at 13:25Missing character: There is no ' in font ts1-inconsolata!. – Christian Clason Dec 07 '12 at 13:26droidmonopackage) which has straight quotes and looks somewhat similar. – Christian Clason Dec 07 '12 at 13:29ttfont? Or how would I otherwise apply it to amintedenvironment? – Richard Dec 07 '12 at 13:36[fontfamily=fdm](for Droid Sans Mono, orfvmfor Bera Sans Mono orSourceCodePro-TLFfor SourceCode Pro) in the minted environment. – Christian Clason Dec 07 '12 at 13:42matlab-prettifierpackage; see this answer. – jub0bs Apr 28 '14 at 15:30