there are pertinent differences in the libraries between mingw and gcc
I think that with mingw, the MS runtime is still used by default for formatting of values.
However, that is avoided (by building with -D__USE_MINGW_ANSI_STDIO) in recent versions of Strawberry Perl, beginning perl-5.26.0.
(Look for "-D__USE_MINGW_ANSI_STDIO" in perl -V:ccflags)
Of course, ActiveState don't build with -D__USE_MINGW_ANSI_STDIO.