Xelatex and french through polyglossia: how to have the french punctuation even with inline mathematics

When I use xelatex, and polyglossia to deal with the french punctuation, I get the right spacing with the pure text, but not when I put mathematics in my text:

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{french}
\newcommand{\fff}{f; f ;«f» « f »; $\epsilon$; A: Aspace : $Amath$: $Amathspace$ :}

\begin{document}
\fff

\end{document}


It works:

\documentclass{article}
\usepackage{fontspec}
\usepackage{polyglossia}
\setmainlanguage{french}

\begin{document}

f; f ; «f» « f »; $\epsilon$; A: Aspace : $Amath$: $Amathspace$ :

\end{document}


• Indeed it works with texlive 2015, but not texlive 2016 which I forgot that I used for this document. May 4 '16 at 6:28
• @user1283885 I'll test it later, but questions about pretest versions are better addressed to the mailing lists or developers' sites May 4 '16 at 7:10
• @user1283885 The gloss-french.ldf file should be updated to use 4095 instead of 255 in four places. May 4 '16 at 7:42
• @user1283885 github.com/reutenauer/polyglossia/issues/145 May 4 '16 at 9:55