Merge "Add missing setlocale calls in tests." into main