1.47: Reproduced and fixed RT #41285 test failures with non-english locale

(Thanks to cpantesters and srezic)