unidiff: use newline='\n' argument
authorMartin Liska <mliska@suse.cz>
Sun, 11 Dec 2022 16:18:12 +0000 (17:18 +0100)
committerMartin Liska <mliska@suse.cz>
Sun, 11 Dec 2022 16:22:25 +0000 (17:22 +0100)
commitb045179973161115c7ea029b2788f5156fc55cda
treefa6e261f5badad137e27f1589c0b4d5b4bfb44b0
parent6d799f0aed18be25a5c908499b6411ab6d06b78c
unidiff: use newline='\n' argument

In order to support CR on a line, we need to open files
with newline='\n' as our line endings supposed to be of UNIX style.

contrib/ChangeLog:

* check_GNU_style.py: Use newline=\n.
* check_GNU_style_lib.py: Simplify.
* gcc-changelog/git_commit.py: Fix issues seen
Rust patchset.
* gcc-changelog/git_email.py: Use newline argument.
* gcc-changelog/test_email.py: New test.
* gcc-changelog/test_patches.txt: New test.
* mklog.py: Use newline argument.
contrib/check_GNU_style.py
contrib/check_GNU_style_lib.py
contrib/gcc-changelog/git_commit.py
contrib/gcc-changelog/git_email.py
contrib/gcc-changelog/test_email.py
contrib/gcc-changelog/test_patches.txt
contrib/mklog.py