Test and fix line endings issue #2133.