Thanks for the bug report. That one's my fault, as it was due to this patch: https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=ba0605779e0e207161441c08afdfac57ed603f69 which fixed a problem elsewhere but introduced a bug. I installed the attached patch to fix things.