tabulation minted xelatex

When I use tabulation inside the minted environment in pdflatex, they show as normal (several spaces).

But when I use xelatex, they appear as ^^I.

Example (before each letter a b c, there is space-tabulation-space) :

\documentclass{standalone}
\usepackage{minted}

\begin{document}
\begin{minipage}{6cm}
\begin{minted}{c}
a    b   c
\end{minted}
\end{minipage}
\end{document}


In pdflatex I obtain :

Using xelatex, I obtain :

I tried different things to obtain the same behavior for tabulation in xelatex, but did not succeed. How can I do to obtain correct tabulation in minted under xelatex ?

You're going to want to put xelatex into 8bit mode, thereby preventing the escaping of the tab character into a control character.

Try:

xelatex -8bit -shell-escape file.tex


See G. Poore's comment for more details.

• minted needs xelatex to write tabs to a temporary external file, but xelatex requires a special setting to write literal tabs: tex.stackexchange.com/questions/58732/… – G. Poore Sep 5 '13 at 14:40