use the system locale for errors, not the PHP locale (which might be different)