I minimized it to the following snippet:
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{\%н}
\end{document}
When I compile it:
xelatex test.tex
the first run compiles fine, but on the second run it complains:
Runaway argument?
{
! File ended while scanning use of \@@BOOKMARK.
<inserted text>
\par
l.3 \begin{document}
If I remove either hyperref
, or percent sign, or cyrillic char, it compiles fine. I observe this behavior only on TeXLive 2012 distribution - 2009 distribution works just fine.
What is the problem?