# XINDY wrongly sorted entries

I am testing xindy and have the following problem that the entries for umlauts are wrongly sorted.

Using TeXLive 2021 not full version on Windows.

MWE:

\documentclass{article}
\usepackage[xindy]{imakeidx}

\makeindex[
options=-L german-din
]
\begin{document}
Test
\index{Äpfel}
\index{Apfel}
\index{Test}
\index{Überflug}
\index{Öfen }
\index{Opfer}
\index{Unfug}
\printindex
\end{document}


The german-din defines this

(sort-rule "ä" "ae")
(sort-rule "ö" "oe")
(sort-rule "ü" "ue")

(sort-rule "Ä" "ae")
(sort-rule "Ö" "oe")
(sort-rule "Ü" "ue")


so why is Ö and Ü wrongly sorted

• Exactly what LaTeX installation are you on? I get the three umlaut ones listed under O, which seems wrong as well Oct 14, 2021 at 7:27
• I seem to get more appropriate sorting using -C utf8 for the xindy options. (I haven't looked at the sorting rules). With -C utf8 I get Ä sorted under A, Ö under o and Ü under u Oct 14, 2021 at 7:29
• @daleif I am using texlive on windows. Oct 14, 2021 at 9:18
• Version? I'm using TeLive 2021 on linux Oct 14, 2021 at 9:20
• Note that I just used options=-L german-din -C utf8 and made sure to rin with -shell-espace` that worked fine for me. Oct 14, 2021 at 10:36