configure_file: preserve newlines of the input file. Fixes #4817
In some cases (see #4817) it's helpful if the output file uses the same newlines as the input file without translating them to the platform defaults. open() by default recognizes all newline styles and translates them to "\n" and then to the platform default when writing. Passing "" to "newline" disables the translation and lets us pass through the original newline characters.pull/4848/head
parent
b45c367d92
commit
8df5afc98a
2 changed files with 36 additions and 2 deletions
Loading…
Reference in new issue