Fixed bug #65230 setting locale randomly broken