Ignore line endings hasher doesn't handle windows carriage returns

Created on 14 April 2016, about 9 years ago
Updated 24 April 2025, 3 days ago

Carriage returns are the ones that sometimes show up as ^M on a unix system and can be added to each line of a file when it's saved on windows. It's not the same as a newline character so FILE_IGNORE_NEW_LINES does not cover it, but files with them will be marked as changed and the diff will show the entire file beside itself with no visible differences as in the screenshot.

I have also included a version of the backup_migrate module that contains these characters which I have used to test this bug and my fix for it.

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇨🇦Canada jmuzz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024