mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 00:35:50 +02:00
os.linesep isn't supposed to be used when writing to files opened in text mode, where '\n' is escaped to the platform-specific ASCII sequence. For example, on Windows, os.linesep is '\r\n' and in text mode is escaped to ASCII sequence CR CR LF rather than just CR LF. This is also true for the default logger and IDisplay notifications. Replacing os.linesep with '\n' ensures the right sequence is escaped. Resolves: 6899