https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96322
--- Comment #3 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- Good point. I tried pt_PT on FreeBSD to check if it's the same as in Linux and it's not: there grouping=3 is used. +1 for custom locale.