Error when loading RTL languages after LaTeX update
\documentclass{article}
\usepackage{polyglossia}
\setotherlanguage{kurdish}
\stop
now fails on master, after https://github.com/latex3/latex2e/pull/1187/commits/0256b600aad0e10ae14d465a493f16eaf1398edf.
This is related to the location we use \RequireBidi. It is used in the key direction in polyglossia setup, and in kurdish the different variants set the direction using \SetLanguageKeys, and so \RequireBidi is issued again. It happens inside \__xpg_register_language:nn in a group where the options are set again to retrieve the correct babel name etc.,
Note that in the branch I'm currently working on, this problem does not exist, as there I don't spam RequireBidi, but I also don't warn when an RTL language is used, but bidi was not loaded (I'm still figuring out what best method would be to do that).
In any case, I think for now the best thing to do is to make \RequireBidi a no-op after one use.
BTW, we should probably test ourselves if a gloss is being loaded in a group, just to be safe, but I'll leave that for after the release.
So this is resolved, right? If so, mark fixedindev, please
Yes, bug is only present in the dev, not in 2.1, so I'll simply close it....